We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Duration
1 parent a0e6c0c commit 855b7b3Copy full SHA for 855b7b3
types/plugin/duration.d.ts
@@ -14,6 +14,7 @@ declare namespace plugin {
14
((units: DurationUnitsObjectType) => Duration)
15
& ((time: number, unit?: DurationUnitType) => Duration)
16
& ((ISO_8601: string) => Duration)
17
+ type AddDurationType = CreateDurationType & ((duration: Duration) => Duration)
18
19
interface Duration {
20
new (input: string | number | object, unit?: string, locale?: string): Duration
@@ -50,9 +51,9 @@ declare namespace plugin {
50
51
52
get(unit: DurationUnitType): number
53
- add: CreateDurationType;
54
+ add: AddDurationType
55
- subtract: CreateDurationType
56
+ subtract: AddDurationType
57
58
toJSON(): string
59
0 commit comments