Skip to content
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

Problem with $attrs #152

Closed
lfhenrl opened this issue Apr 23, 2021 · 2 comments
Closed

Problem with $attrs #152

lfhenrl opened this issue Apr 23, 2021 · 2 comments
Labels
question Further information is requested

Comments

@lfhenrl
Copy link

lfhenrl commented Apr 23, 2021

Thanks for an amazing tool.
If i use the $attrs like in this code, I got errors saying that Type 'unknown' is not assignable to type 'string | undefined'.
I know it is TS but in this situation I think it should be ignored.

image

@johnsoncodehk
Copy link
Member

We should not ignore this type error, but should fix the attr type on your way.

For example:

@johnsoncodehk johnsoncodehk added the question Further information is requested label Apr 23, 2021
@lfhenrl
Copy link
Author

lfhenrl commented Apr 23, 2021

Ok, thanks for fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants