We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a383ed commit de14682Copy full SHA for de14682
types/plugin/quarterOfYear.d.ts
@@ -1,12 +1,12 @@
1
-import { PluginFunc, QUnitType } from 'dayjs'
+import { PluginFunc, ConfigType, QUnitType } from 'dayjs'
2
3
declare const plugin: PluginFunc
4
export = plugin
5
6
declare module 'dayjs' {
7
interface Dayjs {
8
quarter(): number
9
-
+
10
quarter(quarter: number): Dayjs
11
12
add(value: number, unit: QUnitType): Dayjs
@@ -16,5 +16,11 @@ declare module 'dayjs' {
16
startOf(unit: QUnitType): Dayjs
17
18
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
25
}
26
0 commit comments