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>

Source

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