diff --git a/cli/src/build.ts b/cli/src/build.ts index 1d512310..51f66f97 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -383,6 +383,9 @@ export class ExternalObject { dts += indentLines(`}`, nest) + '\n' break case 'enum': + if (!nested) { + idents.push(def.name) + } dts += indentLines(`${def.js_doc}export enum ${def.name} {`, nest) + '\n' dts += indentLines(def.def, nest + 2) + '\n'