Skip to content

Commit 855b7b3

Browse files
authored
fix: hotfix for Duration types (#1357)
closes #1354
1 parent a0e6c0c commit 855b7b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

types/plugin/duration.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare namespace plugin {
1414
((units: DurationUnitsObjectType) => Duration)
1515
& ((time: number, unit?: DurationUnitType) => Duration)
1616
& ((ISO_8601: string) => Duration)
17+
type AddDurationType = CreateDurationType & ((duration: Duration) => Duration)
1718

1819
interface Duration {
1920
new (input: string | number | object, unit?: string, locale?: string): Duration
@@ -50,9 +51,9 @@ declare namespace plugin {
5051

5152
get(unit: DurationUnitType): number
5253

53-
add: CreateDurationType;
54+
add: AddDurationType
5455

55-
subtract: CreateDurationType
56+
subtract: AddDurationType
5657

5758
toJSON(): string
5859

0 commit comments

Comments
 (0)