diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index 5c9ab58f3..3c2eaaca0 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -413,8 +413,8 @@ interface KnockoutStatic { virtualElements: KnockoutVirtualElements; extenders: KnockoutExtenders; - applyBindings(viewModel?: any, rootNode?: any): void; - applyBindingsToDescendants(viewModel: any, rootNode: any): void; + applyBindings(viewModelOrBindingContext?: any, rootNode?: any): void; + applyBindingsToDescendants(viewModelOrBindingContext: any, rootNode: any): void; applyBindingAccessorsToNode(node: Node, bindings: (bindingContext: KnockoutBindingContext, node: Node) => {}, bindingContext: KnockoutBindingContext): void; applyBindingAccessorsToNode(node: Node, bindings: {}, bindingContext: KnockoutBindingContext): void; applyBindingAccessorsToNode(node: Node, bindings: (bindingContext: KnockoutBindingContext, node: Node) => {}, viewModel: any): void; diff --git a/moment/moment.d.ts b/moment/moment.d.ts index d4abff0df..b6ac9a79e 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -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; @@ -170,12 +176,20 @@ interface Moment { day(): number; date(d: number): Moment; date(): number; + hour(h: number): Moment; + hour(): number; hours(h: number): Moment; hours(): number; + minute(m: number): Moment; + minute(): number; minutes(m: number): Moment; minutes(): number; + second(s: number): Moment; + second(): number; seconds(s: number): Moment; seconds(): number; + millisecond(ms: number): Moment; + millisecond(): number; milliseconds(ms: number): Moment; milliseconds(): number; weekday(): number;