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
Preparation for typescript 2.4 #730
Preparation for typescript 2.4 #730
Conversation
I feel like this further supports #620 |
This PR fixes an issue we just stumbled upon at work: 48 abstract class Component<PropsType, StateType> implements ComponentLifecycle<PropsType, StateType> {
~~~~~~~~~
node_modules/preact/dist/preact.d.ts(48,17): error TS2559: Type 'Component<PropsType, StateType>' has no properties in common with type 'ComponentLifecycle<PropsType, StateType> +1 on merging this PR |
@developit Any chance this might get merged? This makes preact work again with the latest TypeScript version. |
Great stuff! I also wanted a fix for the TS 2.4 compile error. While this does overcome the weak type overlap compile error, it does result in an unnecessary abstract class. |
That sounds great as well! The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new TypeScript language features are used in this PR. LGTM 👍
Not directly related, but shouldn't the props be of type |
Typescript Changes
Please read about Week Types.