Skip to content

Commit 400bc3e

Browse files
authored
fix: add OpUnitType (week) to quarterOfYear startOf/endOf types (#1865)
1 parent d033dfc commit 400bc3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/plugin/quarterOfYear.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PluginFunc, ConfigType, QUnitType } from 'dayjs'
1+
import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs'
22

33
declare const plugin: PluginFunc
44
export = plugin
@@ -13,9 +13,9 @@ declare module 'dayjs' {
1313

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

16-
startOf(unit: QUnitType): Dayjs
16+
startOf(unit: QUnitType | OpUnitType): Dayjs
1717

18-
endOf(unit: QUnitType): Dayjs
18+
endOf(unit: QUnitType | OpUnitType): Dayjs
1919

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

0 commit comments

Comments
 (0)