mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
The new TSX mode in the TypeScript compiler has the requirements that the element class constructor produces an element instance type that is assignable to the type JSX.ElementClass. To meet this Component<P, S> must declare `render(): JSX.Element`. Derived classes can be more specific. This should resolve Microsoft/TypeScript#3928. |
||
|---|---|---|
| .. | ||
| react-addons-global.d.ts | ||
| react-addons-tests.ts | ||
| react-addons.d.ts | ||
| react-global.d.ts | ||
| react-tests.ts | ||
| react.d.ts | ||
| README.md | ||
React v0.13.3 Type Definitions
This folder contains the following .d.ts files:
react.d.tsdeclares the external module"react"react-addons.d.tsdeclares the external module"react/addons"react-global.d.tsdeclares the internal moduleReactin the global namespacereact-addons-global.d.tsextends the globalReactmodule withaddons
Interfaces are duplicated between these files; please take care to keep them in sync when making changes. See #3615 for relevant discussion.