Add two methods add() and sub() to timezonecomplete.d.ts

This commit is contained in:
Rogier Schouten
2014-06-27 12:28:44 +02:00
parent 37982a91ed
commit f787f16fb5
+10
View File
@@ -152,6 +152,16 @@ declare module 'timezonecomplete' {
* @return a new Duration of (this * value)
*/
multiply(value: number): Duration;
/**
* Add a duration.
* @return a new Duration of (this + value)
*/
add(value: Duration): Duration;
/**
* Subtract a duration.
* @return a new Duration of (this - value)
*/
sub(value: Duration): Duration;
/**
* String in [-]hh:mm:ss.nnn notation. All fields are
* always present except the sign.