Skip to content

[F] isOneOf

function isOneOf(program, type): boolean

Check if given type is annotated with @oneOf decorator

Parameters

ParameterType
programProgram
typeType

Returns

boolean