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
{{ message }}
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.
Typescript 2.4.1 reports when compiling csstransitiongroup.d.ts:
Error:(13, 5) TS2424:Class 'Component<CSSTransitionGroupProps, {}>' defines instance member function 'componentDidMount', but extended class 'CSSTransitionGroup' defines it as instance member property.
which conflicts with the ComponentLifeCycle member:
componentDidMount?(): void;
I'm surprised that Typescript would care whether it's a member function or member property. Note also that the React def claims componentDidMount() is optional and returns void, whereas react-css-transition claims it is required and returns boolean.
The text was updated successfully, but these errors were encountered:
estaub
changed the title
Type problem with Typescript 2.4.1 + react 15.6.1
Type problem in 0.7.4 with Typescript 2.4.1 + react 15.6.1
Jul 8, 2017
Typescript 2.4.1 reports when compiling
csstransitiongroup.d.ts
:This is regarding:
which conflicts with the
ComponentLifeCycle
member:componentDidMount?(): void;
I'm surprised that Typescript would care whether it's a member function or member property. Note also that the React def claims
componentDidMount()
is optional and returns void, whereas react-css-transition claims it is required and returns boolean.The text was updated successfully, but these errors were encountered: