Skip to content

Commit

Permalink
Fix: Update QuarterOfYear plugin type definition (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryrivers authored and iamkun committed May 6, 2019
1 parent 6a383ed commit de14682
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions types/plugin/quarterOfYear.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { PluginFunc, QUnitType } from 'dayjs'
import { PluginFunc, ConfigType, QUnitType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
interface Dayjs {
quarter(): number

quarter(quarter: number): Dayjs

add(value: number, unit: QUnitType): Dayjs
Expand All @@ -16,5 +16,11 @@ declare module 'dayjs' {
startOf(unit: QUnitType): Dayjs

endOf(unit: QUnitType): Dayjs

isSame(date: ConfigType, unit?: QUnitType): boolean

isBefore(date: ConfigType, unit?: QUnitType): boolean

isAfter(date: ConfigType, unit?: QUnitType): boolean
}
}

0 comments on commit de14682

Please sign in to comment.