Skip to content

Commit

Permalink
fix: Update relativeTime plugin type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Feb 25, 2019
1 parent a0d4c6e commit de56f2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/plugin/relativeTime.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { PluginFunc, DateType } from 'dayjs'
import { PluginFunc, ConfigType } from 'dayjs'

declare const plugin: PluginFunc
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
}
}

0 comments on commit de56f2c

Please sign in to comment.