diff --git a/types/plugin/relativeTime.d.ts b/types/plugin/relativeTime.d.ts index 306493002..d08121eed 100644 --- a/types/plugin/relativeTime.d.ts +++ b/types/plugin/relativeTime.d.ts @@ -1,4 +1,4 @@ -import { PluginFunc, DateType } from 'dayjs' +import { PluginFunc, ConfigType } from 'dayjs' declare const plugin: PluginFunc export = plugin @@ -6,8 +6,8 @@ export = plugin declare module 'dayjs' { interface Dayjs { fromNow(withoutSuffix?: boolean): string - from(compared: DateType, withoutSuffix?: boolean): string + from(compared: ConfigType, withoutSuffix?: boolean): string toNow(withoutSuffix?: boolean): string - to(compared: DateType, withoutSuffix?: boolean): string + to(compared: ConfigType, withoutSuffix?: boolean): string } }