mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-11 12:00:27 +08:00
added missing Duration methods
This commit is contained in:
1 parent
f2623b8f6c
commit
07933d7f8b
1 file changed
+6
Vendored
+6
@@ -35,6 +35,8 @@ interface Duration {
|
||||
|
||||
humanize(withSuffix?: boolean): string;
|
||||
|
||||
as(units: string): number;
|
||||
|
||||
milliseconds(): number;
|
||||
asMilliseconds(): number;
|
||||
|
||||
@@ -56,6 +58,10 @@ interface Duration {
|
||||
years(): number;
|
||||
asYears(): number;
|
||||
|
||||
add(n: number, p: string): Duration;
|
||||
add(n: number): Duration;
|
||||
add(d: Duration): Duration;
|
||||
|
||||
subtract(n: number, p: string): Duration;
|
||||
subtract(n: number): Duration;
|
||||
subtract(d: Duration): Duration;
|
||||
|
||||
Reference in new issue
Block a user