Merge pull request #5274 from avielfedida/master

Updated iso8601-localizer type definitions to suit v1.2.0
This commit is contained in:
Horiuchi_H
2015-08-12 12:38:50 +09:00
2 changed files with 5 additions and 1 deletions
@@ -3,3 +3,5 @@
new ISO8601Localizer('2015-06-02T14:13:12').localize();
new ISO8601Localizer('2015-06-02T14:13:12').to(-5).localize();
new ISO8601Localizer('2015-06-02T14:13:12').to(-5).returnAs('object').localize();
+3 -1
View File
@@ -1,15 +1,17 @@
// Type definitions for ISO8601-Localizer v1.0.5
// Type definitions for ISO8601-Localizer v1.2.0
// Project: https://github.com/avielfedida/ISO8601-Localizer
// Definitions by: Aviel Fedida <https://github.com/avielfedida/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface localizer {
to(offset: number): localizer,
returnAs(as: string): localizer;
localize(): string;
}
declare class ISO8601Localizer implements localizer {
constructor(userISO8601: string);
to(offset: number): localizer;
returnAs(as: string): localizer;
localize(): string;
}