DefinitelyTyped/react
Nathan Brown 207710d2a0 React: Include required render() function in base Component class.
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.
2015-08-03 17:08:03 -07:00
..
react-addons-global.d.ts Go back to old style of React typings and merge in JSX to both 2015-07-06 15:58:01 -07:00
react-addons-tests.ts Merge branch 'master' into tsc-1.5.0-alpha 2015-06-21 14:57:48 +09:00
react-addons.d.ts [React] Update HTMLAttributes interface 2015-05-28 15:30:16 -07:00
react-global.d.ts React: Include required render() function in base Component class. 2015-08-03 17:08:03 -07:00
react-tests.ts Revert "React : test for modernComponent" 2015-06-15 10:01:01 +10:00
react.d.ts React: Include required render() function in base Component class. 2015-08-03 17:08:03 -07:00
README.md [React] Update README (0.13.3) 2015-05-28 15:33:04 -07:00

React v0.13.3 Type Definitions

This folder contains the following .d.ts files:

  • react.d.ts declares the external module "react"
  • react-addons.d.ts declares the external module "react/addons"
  • react-global.d.ts declares the internal module React in the global namespace
  • react-addons-global.d.ts extends the global React module with addons

Interfaces are duplicated between these files; please take care to keep them in sync when making changes. See #3615 for relevant discussion.