diff --git a/types/knockout/test/index.ts b/types/knockout/test/index.ts index 094cab2aa1..c70394ea22 100644 --- a/types/knockout/test/index.ts +++ b/types/knockout/test/index.ts @@ -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" } });