UNPKG

@technobuddha/library

Version:
11 lines (10 loc) 433 B
/** * Convert a string to a numeric value * * @param input The string to convert * @param tests Array of tests (string value or regular expressions) * @parm __namedParameters see {@link Options} * @returns The index of the first test to match the input string */ export declare function toEnumeration(input: string, ...tests: (Iterable<string | RegExp> | string | RegExp)[]): number | undefined; export default toEnumeration;