Skip to content

Commit

Permalink
fix: add OpUnitType to quarterOfYear startOf/endOf types
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmiles committed Apr 21, 2022
1 parent 8757477 commit de01e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/plugin/quarterOfYear.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PluginFunc, ConfigType, QUnitType } from 'dayjs'
import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin
Expand All @@ -13,9 +13,9 @@ declare module 'dayjs' {

subtract(value: number, unit: QUnitType): Dayjs

startOf(unit: QUnitType): Dayjs
startOf(unit: QUnitType | OpUnitType): Dayjs

endOf(unit: QUnitType): Dayjs
endOf(unit: QUnitType | OpUnitType): Dayjs

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

Expand Down

0 comments on commit de01e49

Please sign in to comment.