Skip to content

Commit

Permalink
fix: add OpUnitType (week) to quarterOfYear startOf/endOf types (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmiles authored May 6, 2022
1 parent d033dfc commit 400bc3e
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 400bc3e

Please sign in to comment.