Skip to content

Commit

Permalink
fix: typescript issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sssajjad007 committed Aug 12, 2024
1 parent 59ec82a commit 3931d59
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 3931d59

Please sign in to comment.