Skip to main content

Function: resolveEnum()

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

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

Parameters

ParameterType
parameterstring
options?{ caseInsensitive: boolean; enum: string[]; }
options.caseInsensitive?boolean
options.enum?string[]

Returns

Result<string, ArgumentEnumEmptyError | ArgumentEnumError>