I'm generating externs file from a d.ts file which defines an UMD module. In the output, the filename becomes the top level namespace. I want to generate externs without this top level namespace. Is it possible?
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
// externs from :
/** @const */
var _$$index$d = {};
/** @const */
_$$index$d.A = {};
/**
* @return {void}
*/
_$$index$d.A.hello = function() {};
the d.ts file:
declare namespace A {
function hello(): void;
}
export = A;
export as namespace A;Reactions are currently unavailable
I'm generating externs file from a d.ts file which defines an UMD module. In the output, the filename becomes the top level namespace. I want to generate externs without this top level namespace. Is it possible?
the d.ts file: