Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Conversation

robertknight
Copy link
Contributor

This updates typed-react to work with the current React v0.13 typings from DefinitelyTyped

The main change is that the current typings declare an external "react" module rather than declaring React in the global namespace, although both flavors of the typings are available in the DefinitelyTyped repository.

Although it is possible to skip typed-react and just use ES6 classes directly, this is still helpful for places where mixin support is useful since that story hasn't been figured out yet, and in my case for migrating a reasonable-size existing codebase to ES6 classes.

  • The main React typings for v0.13 declare an
    external module rather than one which declares
    the internal module React in the global namespace.
  • Adjust the '<reference path' lines in the .d.ts files generated
    by TypeScript rather than removing them, as dts-bundle
    now needs to know about them

See #45

 * The main React typings for v0.13 declare an
   external module rather than one which declares
   the internal module React in the global namespace.

 * Adjust the '<reference path' lines in the .d.ts files generated
   by TypeScript rather than removing them, as dts-bundle
   needs to know about them.

See Asana#45
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8d353f8 on robertknight:react-v0_13_typings-compat into 350e7d2 on Asana:master.

@pspeter3
Copy link
Contributor

Thanks! This is awesome!

pspeter3 added a commit that referenced this pull request Mar 15, 2015
@pspeter3 pspeter3 merged commit 925c6a3 into Asana:master Mar 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants