Merge pull request #17999 from stephtr/patch-1

[knockout] update KnockoutComponentTypes.Loader callbacks
This commit is contained in:
Ryan Cavanaugh
2017-07-14 16:12:02 -07:00
committed by GitHub
+2 -2
View File
@@ -657,8 +657,8 @@ declare namespace KnockoutComponentTypes {
interface Loader {
getConfig? (componentName: string, callback: (result: ComponentConfig | null) => void): void;
loadComponent? (componentName: string, config: ComponentConfig, callback: (result: Definition) => void): void;
loadTemplate? (componentName: string, templateConfig: any, callback: (result: Node[]) => void): void;
loadComponent? (componentName: string, config: ComponentConfig, callback: (result: Definition | null) => void): void;
loadTemplate? (componentName: string, templateConfig: any, callback: (result: Node[] | null) => void): void;
loadViewModel? (componentName: string, viewModelConfig: any, callback: (result: any) => void): void;
suppressLoaderExceptions?: boolean;
}