Skip to content

Commit de56f2c

Browse files
committed
fix: Update relativeTime plugin type definition
1 parent a0d4c6e commit de56f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/plugin/relativeTime.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { PluginFunc, DateType } from 'dayjs'
1+
import { PluginFunc, ConfigType } from 'dayjs'
22

33
declare const plugin: PluginFunc
44
export = plugin
55

66
declare module 'dayjs' {
77
interface Dayjs {
88
fromNow(withoutSuffix?: boolean): string
9-
from(compared: DateType, withoutSuffix?: boolean): string
9+
from(compared: ConfigType, withoutSuffix?: boolean): string
1010
toNow(withoutSuffix?: boolean): string
11-
to(compared: DateType, withoutSuffix?: boolean): string
11+
to(compared: ConfigType, withoutSuffix?: boolean): string
1212
}
1313
}

0 commit comments

Comments
 (0)