-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Provide type information for requireNode
#380
Comments
I just started converting my app to TS and hit this issue too. Is |
It's an I don't think it would be hard to provide typings for it. I'm not sure if it would also be helpful to provide type info for our window.require -- not sure if the two require() signatures are exactly the same, or if it would make sense to provide overload signatures. While we're at it, we may as well provide type info for moduleNode and processNode. |
Anyone volunteering to do this work? 😉 |
I'm using TypeScript and was seeing this warning / error:
I can make it go away by adding this line, but I know there must be a more automatic way to provide type information from the package itself (or at least from a
@types/...
package):declare var requireNode: (name:string) => any;
Could we include support for that somehow?
The text was updated successfully, but these errors were encountered: