diff --git a/types/plugin/utc.d.ts b/types/plugin/utc.d.ts index 544ea4e70..e2350d200 100644 --- a/types/plugin/utc.d.ts +++ b/types/plugin/utc.d.ts @@ -1,13 +1,13 @@ -import { PluginFunc, ConfigType } from 'dayjs' +import { PluginFunc, ConfigType, OptionType } from 'dayjs' declare const plugin: PluginFunc export = plugin declare module 'dayjs' { interface Dayjs { - + utc(keepLocalTime?: boolean): Dayjs - + local(): Dayjs isUTC(): boolean @@ -15,5 +15,5 @@ declare module 'dayjs' { utcOffset(offset: number | string, keepLocalTime?: boolean): Dayjs } - export function utc(config?: ConfigType, format?: string, strict?: boolean): Dayjs + export function utc(config?: ConfigType, format?: OptionType, strict?: boolean): Dayjs }