1.0.0-beta.11
https://github.com/vwxyutarooo/vue-test-utils/blob/dev/types/test/wrapper.ts#L19
Use wrapper.props().checked or wrapper.attributes().foo in TypeScript.
interface BaseWrapper issue.
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.
- [email protected]
- @vue/[email protected]
- [email protected]
- [email protected]
I'm trying to fix it.
https://github.com/vwxyutarooo/vue-test-utils/blob/dev/types/index.d.ts#L52
@vwxyutarooo You can send PR :)
@kazupon Thanks, I've create it!
Most helpful comment
@kazupon Thanks, I've create it!