Update index.d.ts

This commit is contained in:
Mathias Lykkegaard Lorenzen
2018-02-05 11:36:44 +01:00
committed by GitHub
parent 8058968995
commit 267674ea8f

View File

@@ -314,6 +314,7 @@ interface KnockoutUtils {
triggerEvent(element: any, eventType: any): void;
unwrapObservable<T>(value: KnockoutObservable<T> | T): T;
unwrapObservable<T>(value: KnockoutObservableArray<T> | T[]): T[];
// NOT PART OF THE MINIFIED API SURFACE (ONLY IN knockout-{version}.debug.js) https://github.com/SteveSanderson/knockout/issues/670
// forceRefresh(node: any): void;
@@ -454,6 +455,7 @@ interface KnockoutStatic {
renderTemplate(template: Function, viewModel: any, options?: any, target?: any, renderMode?: any): any;
renderTemplate(template: string, viewModel: any, options?: any, target?: any, renderMode?: any): any;
unwrap<T>(value: KnockoutObservable<T> | T): T;
unwrap<T>(value: KnockoutObservableArray<T> | T[]): T[];
computedContext: KnockoutComputedContext;