Skip to content

Commit

Permalink
fix: hotfix for Duration types (#1357)
Browse files Browse the repository at this point in the history
closes #1354
  • Loading branch information
zardoy authored Jan 26, 2021
1 parent a0e6c0c commit 855b7b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/plugin/duration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare namespace plugin {
((units: DurationUnitsObjectType) => Duration)
& ((time: number, unit?: DurationUnitType) => Duration)
& ((ISO_8601: string) => Duration)
type AddDurationType = CreateDurationType & ((duration: Duration) => Duration)

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

get(unit: DurationUnitType): number

add: CreateDurationType;
add: AddDurationType

subtract: CreateDurationType
subtract: AddDurationType

toJSON(): string

Expand Down

0 comments on commit 855b7b3

Please sign in to comment.