An experimental TypeSpec syntax for Lexicon

wip

-7
-7
packages/emitter/src/emitter.ts
··· 414 } 415 416 const description = getDoc(this.program, union); 417 - 418 - // Closed model unions are NOT added to defs - they are only used inline 419 - // This allows @closed unions like Write { Create | Update | Delete } to work 420 - if (hasModelTypes && isClosed(this.program, union)) { 421 - return; 422 - } 423 - 424 if (hasModelTypes && unionDef.type === "union") { 425 // Wrap open union of models in array type (for Preferences pattern) 426 const arrayDef: any = {
··· 414 } 415 416 const description = getDoc(this.program, union); 417 if (hasModelTypes && unionDef.type === "union") { 418 // Wrap open union of models in array type (for Preferences pattern) 419 const arrayDef: any = {