Skip to content

[F] getDiscriminatedUnion

function getDiscriminatedUnion(type, discriminator): [DiscriminatedUnion, readonly Diagnostic[]]

Parameters

ParameterType
typeModel | Union
discriminatorDiscriminator

Returns

[DiscriminatedUnion, readonly Diagnostic[]]