From de56f2c0c7394d4db3c0f687b6a4dcf7b6a447e6 Mon Sep 17 00:00:00 2001 From: iamkun Date: Mon, 25 Feb 2019 10:42:23 +0800 Subject: [PATCH] fix: Update relativeTime plugin type definition --- types/plugin/relativeTime.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }