fix(cli): missing exported enum
This commit is contained in:
parent
24c5d6950e
commit
d58e488fa2
1 changed files with 3 additions and 0 deletions
|
@ -383,6 +383,9 @@ export class ExternalObject<T> {
|
|||
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'
|
||||
|
|
Loading…
Reference in a new issue