Skip to content

Commit

Permalink
fix(types): allow false as a component stub value (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyo authored and eddyerburgh committed May 16, 2019
1 parent 5e04331 commit 2a4c6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server-test-utils/types/index.d.ts
Expand Up @@ -10,7 +10,7 @@ type VueClass<V extends Vue> = (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[]

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/types/index.d.ts
Expand Up @@ -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[]

/**
Expand Down

0 comments on commit 2a4c6ef

Please sign in to comment.