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
allmoviestvshowslistsfilmography28 authored and iamkun committed May 6, 2019
1 parent c5ec639 commit b3df1ee
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 b3df1ee

Please sign in to comment.