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
I used to be able to attach new attribute types to preact by doing something like:
declare namespace JSX { interface DOMAttributes { onSwipeStart?: (e: any) => void; onSwipeEnd?: (e: any) => void; onSwipeMove?: (e: any) => void; } }
Since #1448, JSX has gone, but attempting:
JSX
declare namespace preact.JSX { interface DOMAttributes { onSwipeStart?: (e: any) => void; onSwipeEnd?: (e: any) => void; onSwipeMove?: (e: any) => void; } }
causes every jsx element to type error with:
{ children: Element[] } has no properties in common with 'HTMLAttributes'.
{ children: Element[] } has no properties in common with 'HTMLAttributes'
What is the correct way to add new events like this since the change? Thanks!
The text was updated successfully, but these errors were encountered:
This solved it for me: #1180 (comment)
Sorry, something went wrong.
Closing as duplicate of #1180
No branches or pull requests
I used to be able to attach new attribute types to preact by doing something like:
Since #1448,
JSX
has gone, but attempting:causes every jsx element to type error with:
{ children: Element[] } has no properties in common with 'HTMLAttributes'
.What is the correct way to add new events like this since the change? Thanks!
The text was updated successfully, but these errors were encountered: