Skip to content

Commit 2a4c6ef

Browse files
garyoeddyerburgh
authored andcommittedMay 16, 2019
fix(types): allow false as a component stub value (#1231)
1 parent 5e04331 commit 2a4c6ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/server-test-utils/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type VueClass<V extends Vue> = (new (...args: any[]) => V) & typeof Vue
1010
* If it is an array of string, the specified children are replaced by blank components
1111
*/
1212
type Stubs = {
13-
[key: string]: Component | string | true
13+
[key: string]: Component | string | boolean
1414
} | string[]
1515

1616
/**

‎packages/test-utils/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Slots = {
2222
* If it is an array of string, the specified children are replaced by blank components
2323
*/
2424
type Stubs = {
25-
[key: string]: Component | string | true
25+
[key: string]: Component | string | boolean
2626
} | string[]
2727

2828
/**

0 commit comments

Comments
 (0)
Please sign in to comment.