Skip to main content

Function: resolveEnum()

resolveEnum(parameter: string, options?: object): Result<string, Identifiers.ArgumentEnumEmptyError | Identifiers.ArgumentEnumError>

Parameters

ParameterType
parameterstring
options?object
options.caseInsensitive?boolean
options.enum?string[]

Returns

Result<string, Identifiers.ArgumentEnumEmptyError | Identifiers.ArgumentEnumError>

Defined in

projects/framework/src/lib/resolvers/enum.ts:4