Skip to content

Commit c508b17

Browse files
committed
fix UTC plugin type definitions
1 parent 6b3c1f2 commit c508b17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/plugin/utc.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import { PluginFunc, ConfigType } from 'dayjs'
1+
import { PluginFunc, ConfigType, OptionType } from 'dayjs'
22

33
declare const plugin: PluginFunc
44
export = plugin
55

66
declare module 'dayjs' {
77
interface Dayjs {
8-
8+
99
utc(keepLocalTime?: boolean): Dayjs
10-
10+
1111
local(): Dayjs
1212

1313
isUTC(): boolean
1414

1515
utcOffset(offset: number | string, keepLocalTime?: boolean): Dayjs
1616
}
1717

18-
export function utc(config?: ConfigType, format?: string, strict?: boolean): Dayjs
18+
export function utc(config?: ConfigType, format?: dayjs.OptionType, strict?: boolean): Dayjs
1919
}

0 commit comments

Comments
 (0)