-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Description
Version
1.0.0-beta.11
Reproduction link
https://github.com/vwxyutarooo/vue-test-utils/blob/dev/types/test/wrapper.ts#L19
Steps to reproduce
Use wrapper.props().checked
or wrapper.attributes().foo
in TypeScript.
What is expected?
interface BaseWrapper
issue.
What is actually happening?
TS2339: Property 'checked' does not exist on type 'void | { [name: string]: any; }'.
Property 'checked' does not exist on type 'void'.
void
is unnecessary I suppose. This method always returns any type of data including undefined. Is it my misunderstanding or just bug?
Environments for just in case.
- Vue@2.5.13
- @vue/test-utils@1.0.0-beta.11
- jest@22.3.0
- typescript@2.6.2
Metadata
Metadata
Assignees
Labels
No labels