Skip to content
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

TS declaration file is incorrect #34

Merged
merged 1 commit into from
Jul 24, 2017
Merged

Commits on Jul 21, 2017

  1. TS declaration file is incorrect

    hoist-non-react-statics does not have a default export and therefore saying `import hoistStatics from 'hoist-non-react-statics';` raises an expection. Because you're using `module.exports` the correct away to require this package in TS is to say `import hoistStatics = require('hoist-non-react-statics');` but that means that the declaration file is incorrect.
    
    Possible fixes:
    
    1. This change
    2. Change the start of [this line](https://github.com/mridgway/hoist-non-react-statics/blob/master/index.js#L35) to `exports.default = modules.exports = ...`
    garbles authored Jul 21, 2017
    Configuration menu
    Copy the full SHA
    6838d36 View commit details
    Browse the repository at this point in the history