From a8ef43cb093474501781dc227defce0f7c02391a Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Fri, 12 Apr 2019 12:55:09 -0700 Subject: [PATCH] Mark parameters in knockout test as optional (#34699) --- types/knockout/test/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } });