Merge pull request #6823 from elmarburke/master

Added definitions for milliseconds/Updated Angular-Formly
This commit is contained in:
Masahiro Wakame
2015-11-22 09:13:58 +09:00
3 changed files with 34 additions and 0 deletions
+5
View File
@@ -9,6 +9,11 @@ declare module 'AngularFormly' {
export = AngularFormly;
}
declare module 'angular-formly' {
var angularFormlyDefaultExport: string;
export = angularFormlyDefaultExport;
}
declare module AngularFormly {
+9
View File
@@ -0,0 +1,9 @@
/// <reference path="milliseconds.d.ts" />
milliseconds.seconds(1)
milliseconds.minutes(2)
milliseconds.hours(3)
milliseconds.days(4)
milliseconds.weeks(5)
milliseconds.month(6)
milliseconds.years(7)
+20
View File
@@ -0,0 +1,20 @@
// Type definitions for milliseconds
// Project: http://npmjs.com/milliseconds
// Definitions by: Elmar Burke <github.com/elmarburke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Milliseconds {
seconds(seconds: number): number
minutes(minutes: number): number
hours(hours: number): number
days(days: number): number
weeks(weeks: number): number
month(month: number): number
years(years: number): number
}
declare var milliseconds: Milliseconds
declare module 'milliseconds' {
export = milliseconds
}