Skip to content

Commit de14682

Browse files
Cryriversiamkun
authored andcommitted
Fix: Update QuarterOfYear plugin type definition (#588)
1 parent 6a383ed commit de14682

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

types/plugin/quarterOfYear.d.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { PluginFunc, QUnitType } from 'dayjs'
1+
import { PluginFunc, ConfigType, QUnitType } from 'dayjs'
22

33
declare const plugin: PluginFunc
44
export = plugin
55

66
declare module 'dayjs' {
77
interface Dayjs {
88
quarter(): number
9-
9+
1010
quarter(quarter: number): Dayjs
1111

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

1818
endOf(unit: QUnitType): Dayjs
19+
20+
isSame(date: ConfigType, unit?: QUnitType): boolean
21+
22+
isBefore(date: ConfigType, unit?: QUnitType): boolean
23+
24+
isAfter(date: ConfigType, unit?: QUnitType): boolean
1925
}
2026
}

0 commit comments

Comments
 (0)