Skip to content

Commit

Permalink
fix: Fix type definition of locale
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored Apr 16, 2020
2 parents 3188e15 + 9dfcb07 commit 9790b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare namespace dayjs {

export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs

export function locale(preset: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string

export function isDayjs(d: any): d is Dayjs

Expand Down

0 comments on commit 9790b85

Please sign in to comment.