-
Notifications
You must be signed in to change notification settings - Fork 668
Typescript error with wrapper.find('select').element.value #1870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Property
|
I think find can take a generic: |
@lmiller1990, find<R extends Vue> (selector: VueClass<R>): Wrapper<R>
find<R extends Vue> (selector: ComponentOptions<R>): Wrapper<R>
find<Props = DefaultProps, PropDefs = PropsDefinition<Props>>(selector: FunctionalComponentOptions<Props, PropDefs>): Wrapper<Vue>
find (selector: string): Wrapper<Vue>
find (selector: RefSelector): Wrapper<Vue>
find (selector: NameSelector): Wrapper<Vue> |
find<Element> (selector: string): Wrapper<Element> That would improve the types and your problem. For some inspiration, check the types in V2, which are really well defined (since the entire code base is written in TypeScript). |
Hello, I'm using typescript and got error
Property 'value' does not exist on type 'HTMLElement'.ts(2339) any
Here is my test
The text was updated successfully, but these errors were encountered: