You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using TypeScript and was seeing this warning / error:
TS2304: Cannot find name 'requireNode'.
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:
It's an ember-electron thing, helping to resolve the naming conflict between Node's require() and Ember/loader.js' require(). We talk about it in the documentation.
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.
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: