Adding the type definitions for ISO8601-Localizer framework

This commit is contained in:
Aviel Fedida
2015-07-23 20:03:24 +03:00
parent 581563c468
commit 66cf2992aa
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,5 @@
/// <reference path="iso8601-localizer.d.ts" />
new ISO8601Localizer('2015-06-02T14:13:12').localize();
new ISO8601Localizer('2015-06-02T14:13:12').to(-5).localize();
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for ISO8601-Localizer v1.0.5
// 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,
localize(): string;
}
declare class ISO8601Localizer implements localizer {
constructor(userISO8601: string);
to(offset: number): localizer;
localize(): string;
}