@whook/whook
Version:
Build strong and efficient REST web services.
13 lines (12 loc) • 585 B
TypeScript
export interface WhookCoercionOptions {
strictlyReentrant: boolean;
}
export declare const BASE_10 = 10;
export declare const DEFAULT_COERCION_OPTIONS: {
readonly strictlyReentrant: true;
};
export declare function parseNumber(options: WhookCoercionOptions, str: string): number;
export declare function parseBoolean(str: string): boolean;
export declare function parseArrayOfStrings(str: string): string[];
export declare function parseArrayOfNumbers(options: WhookCoercionOptions, str: string): number[];
export declare function parseArrayOfBooleans(str: string): boolean[];