We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
defaultValue
Preact 10.4.6 does not contain typescript types for React's defaultValue despite being supported by preact/compat
preact/compat
Try to use it in a Typescript project 🙂
I was able to work around the missing types by adding this override declaration to my project:
declare module 'preact/src/jsx' { /* eslint-disable-next-line @typescript-eslint/no-namespace */ namespace JSXInternal { interface HTMLAttributes<RefType extends EventTarget = EventTarget> { defaultValue?: string; } } }
It builds!
It doesn't...
Property 'defaultValue' does not exist on type 'HTMLAttributes<HTMLInputElement>'.
The text was updated successfully, but these errors were encountered:
Hello there, If this issue is not taken I would like to help
Sorry, something went wrong.
Resolved by 3957522
Successfully merging a pull request may close this issue.
Reproduction
Preact 10.4.6 does not contain typescript types for React's
defaultValue
despite being supported bypreact/compat
Steps to reproduce
Try to use it in a Typescript project 🙂
I was able to work around the missing types by adding this override declaration to my project:
Expected Behavior
It builds!
Actual Behavior
It doesn't...
The text was updated successfully, but these errors were encountered: