Skip to content

Commit 9790b85

Browse files
authored
fix: Fix type definition of locale
2 parents 3188e15 + 9dfcb07 commit 9790b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ declare namespace dayjs {
100100

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

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

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

0 commit comments

Comments
 (0)