You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to TypeScript and basically moved to it due to a much more stable support for decorators, some frameworks and since I am generally more into typed languages like C/C++.
So when I began to put together a basic example with 10.0.0-beta.2, I got the error seen in the screenshot above.
Is that something I need to worry about - or rather, something that I can do anything about? Thanks!
The text was updated successfully, but these errors were encountered:
I've hit another type incompatibility issue myself.
src/app.tsx:6:2 - error TS2605: JSX element type 'PrimaryButton' is not a constructor function for JSX elements.
Types of property 'componentDidCatch' are incompatible.
Type '(error: Error, errorInfo: ErrorInfo) => void' is not assignable to type '(error: any) => void'.
6 <PrimaryButton>I am a button.</PrimaryButton>
Would it be at all possible to expand the preact type definitions to use the existing widely used definitions distributed via @types/react?
Running into this problem on 10.0.0-rc.0. I have a typescript project that requires me to render preact components inside a react project, and whenever I do this I get the same error as OP.
I am new to TypeScript and basically moved to it due to a much more stable support for decorators, some frameworks and since I am generally more into typed languages like C/C++.
So when I began to put together a basic example with 10.0.0-beta.2, I got the error seen in the screenshot above.
Is that something I need to worry about - or rather, something that I can do anything about? Thanks!
The text was updated successfully, but these errors were encountered: