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
{{ message }}
This repository was archived by the owner on May 22, 2025. It is now read-only.
Running the same command gives me the following externs.js:
/** * @externs * @suppress {duplicate} */// NOTE: generated by tsickle, do not edit./** @record@struct */functionFoo(){}/** @type {?} */Foo.prototype.Foo;/** @const */varNodeJS={};/** @type {?} */NodeJS.Foo;
Notice how the initial function Foo() statement is not omitted.
The full reference file can be found at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/types-2.0/node/index.d.ts. Looks like this also happens for builtins like ErrorConstructor. Could this be because we're assuming that closure is operating with --env BROWSER and therefore we don't want to overwrite these globals?