diff --git a/packages/emitter/src/emitter.ts b/packages/emitter/src/emitter.ts index 0a3f87e..54230f7 100644 --- a/packages/emitter/src/emitter.ts +++ b/packages/emitter/src/emitter.ts @@ -164,18 +164,13 @@ export class TypelexEmitter { const hasScalars = ns.scalars.size > 0; const hasUnions = ns.unions?.size > 0; const hasOperations = ns.operations?.size > 0; - const hasChildNamespaces = ns.namespaces.size > 0; const hasContent = hasModels || hasScalars || hasUnions; if (hasOperations) { return "operation"; } - if (hasContent && hasChildNamespaces) { - return "defs"; - } - - if (hasContent && !hasChildNamespaces) { + if (hasContent) { return "content"; }