-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Testing out implementing this project into my own project using Deno Fresh & Preact & getting the following error due to the type mismatch between React & Preact components:
Argument of type 'Element' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>'.
Types of property 'type' are incompatible.
Type 'string | ComponentType<any>' is not assignable to type 'string | JSXElementConstructor<any>'.
Type 'ComponentClass<any, {}>' is not assignable to type 'string | JSXElementConstructor<any>'.
Type 'ComponentClass<any, {}>' is not assignable to type 'new (props: any) => Component<any, any, any>'.
Property 'refs' is missing in type 'Component<any, {}>' but required in type 'Component<any, any, any>'.deno-ts(2345)I am assuming this is a bug. I could of course probably just add react as an import & cast the type passed in but wanted to report it to see if this something we could possibly improve natively in the module so type casting is not needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels