diff --git a/lib/emit.ts b/lib/emit.ts index b251d27..f45bb30 100644 --- a/lib/emit.ts +++ b/lib/emit.ts @@ -75,6 +75,9 @@ export default class Emitter { } public emit(root: any, rootName: string): void { let rootShape = d2s(this, root); + this.emitShape(rootShape, rootName) + } + public emitShape(rootShape: Shape, rootName: string): void { if (rootShape.type === BaseShape.COLLECTION) { rootShape = rootShape.baseShape; }