Mark parameters in knockout test as optional (#34699)

This commit is contained in:
Wesley Wigham
2019-04-12 12:55:09 -07:00
committed by GitHub
parent 9c19be36ac
commit a8ef43cb09
+1 -1
View File
@@ -650,7 +650,7 @@ function test_Components() {
ko.components.register("name", { template: "string-template", viewModel: { instance: null } });
// viewModel from createViewModel factory method
ko.components.register("name", { template: "string-template", viewModel: { createViewModel: function (params: any, componentInfo: KnockoutComponentTypes.ComponentInfo) { return null; } } });
ko.components.register("name", { template: "string-template", viewModel: { createViewModel: function (params?: any, componentInfo?: KnockoutComponentTypes.ComponentInfo) { return null; } } });
// viewModel from an AMD module
ko.components.register("name", { template: "string-template", viewModel: { require: "module" } });