Installation
npm install --save @types/regexgen
Summary
This package contains type definitions for regexgen (https://github.com/devongovett/regexgen).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/regexgen.
index.d.ts
declare function regexgen(inputs: string[], flags?: RegExp["flags"]): RegExp;
declare namespace regexgen {
class Trie {
add(input: string): void;
addAll(inputs: string[]): void;
minimize(): void;
toString(flags?: RegExp["flags"]): string;
toRegExp(flags?: RegExp["flags"]): RegExp;
}
}
export = regexgen;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Septs.