function getDiscriminatedTypes(program): [Model | Union, Discriminator][]
program
Program
[Model | Union, Discriminator][]
Model
Union
Discriminator