Skip to content

[F] getOneOf

function getOneOf(program, entity): boolean;

Looks up the @oneOf marker on this exact target; test its truthiness when choosing union composition.

ParameterType
programProgram
entityType

boolean