-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Typescript definition file for react-grid-layout #57
Comments
Here https://gist.github.com/huodon/b73962bf606a28913e0c But it seems that some error. import * as ReactGridLayout;
console.log(ReactGridLayout); // This not a ReactComponent.
console.log(ReactGrideLayout.Responsive); // is valid |
@huodon Works fine for me, weird that I didn't even need the legacy cjs import syntax of What does your mine is: {
"compilerOptions": {
"module": "commonjs",
"target": "es3",
"noImplicitAny": false,
"sourceMap": false
},
"exclude": [
"node_modules",
"jspm_packages"
]
} the transpiled ES3 looks like: var ReactGridLayout = require('react-grid-layout');
console.log(ReactGridLayout); |
@huodon btw, there are compilation errors in the definition file, specifically, we |
We now have Flow typing - please reopen as a PR if you have a |
Hi,
Does anyone here created a d.ts file for react-grid-layout?
The text was updated successfully, but these errors were encountered: