Skip to content

Commit

Permalink
Merge pull request #2 from sssajjad007/fix/typescript-issue
Browse files Browse the repository at this point in the history
fix: typescript issue
  • Loading branch information
sssajjad007 authored Aug 15, 2024
2 parents 59ec82a + 3931d59 commit 18856a3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { PluginFunc, ConfigType } from 'dayjs';
import { PluginFunc } from 'dayjs';

declare const plugin: PluginFunc;
export = plugin;

type calendarType = 'jalali' | 'gregory';
type CalendarType = 'jalali' | 'gregory';

declare module 'dayjs' {
interface Dayjs {
calendar(calendarType: calendarType): Dayjs;
export function calendar(calendarType: CalendarType): Dayjs;

export function isJalali(): boolean;

isJalali(): boolean;
export interface FormatObject {
jalali?: boolean;
}

interface Dayjs {
calendar(calendarType: CalendarType): Dayjs;
}
}
}

0 comments on commit 18856a3

Please sign in to comment.