From 2a4c6ef41dfc47c8fe71e0b90b65511dbe7f8c28 Mon Sep 17 00:00:00 2001 From: GaryO Date: Thu, 16 May 2019 07:06:31 -0400 Subject: [PATCH] fix(types): allow `false` as a component stub value (#1231) --- packages/server-test-utils/types/index.d.ts | 2 +- packages/test-utils/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server-test-utils/types/index.d.ts b/packages/server-test-utils/types/index.d.ts index a6d6e12ab..b526b588d 100644 --- a/packages/server-test-utils/types/index.d.ts +++ b/packages/server-test-utils/types/index.d.ts @@ -10,7 +10,7 @@ type VueClass = (new (...args: any[]) => V) & typeof Vue * If it is an array of string, the specified children are replaced by blank components */ type Stubs = { - [key: string]: Component | string | true + [key: string]: Component | string | boolean } | string[] /** diff --git a/packages/test-utils/types/index.d.ts b/packages/test-utils/types/index.d.ts index 89e29f028..4ba612c90 100644 --- a/packages/test-utils/types/index.d.ts +++ b/packages/test-utils/types/index.d.ts @@ -22,7 +22,7 @@ type Slots = { * If it is an array of string, the specified children are replaced by blank components */ type Stubs = { - [key: string]: Component | string | true + [key: string]: Component | string | boolean } | string[] /**