Installation
npm install --save @types/to-regex
Summary
This package contains type definitions for to-regex (https://github.com/jonschlinkert/to-regex).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/to-regex.
declare namespace toRegex {
interface Options {
contains?: boolean;
negate?: boolean;
nocase?: boolean;
flags?: string;
cache?: boolean;
safe?: boolean;
}
function makeRe(pattern: string | RegExp, options?: Options): RegExp;
}
declare function toRegex(patterns: string | readonly string[] | RegExp, options?: toRegex.Options): RegExp;
export = toRegex;
Additional Details
- Last updated: Fri, 23 Aug 2024 18:08:51 GMT
- Dependencies: none
Credits
These definitions were written by Rauli Laine.