Skip to main content

Function: resolveInteger()

resolveInteger(parameter: string, options?: object): Result<number, ArgumentIntegerError | ArgumentIntegerTooSmall | ArgumentIntegerTooLarge>

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

Parameters

ParameterType
parameterstring
options?{ maximum: number; minimum: number; }
options.maximum?number
options.minimum?number

Returns

Result<number, ArgumentIntegerError | ArgumentIntegerTooSmall | ArgumentIntegerTooLarge>