Skip to content

Commit

Permalink
chore: update d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Feb 23, 2019
1 parent bc4383e commit 8480919
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ declare namespace dayjs {

isAfter(date: ConfigType, unit?: OpUnitType): boolean

isLeapYear(): boolean

locale(preset: string | { name: string, [key: string]: any }, object?: { [key: string]: any }): Dayjs
}

Expand Down
4 changes: 2 additions & 2 deletions types/plugin/isBetween.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PluginFunc, DateType } from 'dayjs'
import { PluginFunc, ConfigType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
interface Dayjs {
isBetween(a: DateType, b: DateType): boolean
isBetween(a: ConfigType, b: ConfigType): boolean
}
}
4 changes: 2 additions & 2 deletions types/plugin/isSameOrAfter.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PluginFunc } from 'dayjs'
import { PluginFunc, ConfigType, OpUnitType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
interface Dayjs {
isSameOrAfter(date: DateType, unit?: OpUnitType): boolean
isSameOrAfter(date: ConfigType, unit?: OpUnitType): boolean
}
}
4 changes: 2 additions & 2 deletions types/plugin/isSameOrBefore.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PluginFunc } from 'dayjs'
import { PluginFunc, ConfigType, OpUnitType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
interface Dayjs {
isSameOrBefore(date: DateType, unit?: OpUnitType): boolean
isSameOrBefore(date: ConfigType, unit?: OpUnitType): boolean
}
}

0 comments on commit 8480919

Please sign in to comment.