-- in.cue --
#def: {
	Type: string
	Text: string
	Size: int
}

#def: {
	Type: "B"
	Size: 0
} | {
	Type: "A"
	Size: 1
}
-- out/compile --
--- in.cue
{
  #def: {
    Type: string
    Text: string
    Size: int
  }
  #def: ({
    Type: "B"
    Size: 0
  }|{
    Type: "A"
    Size: 1
  })
}
