1 | // Type definitions for is-regex 1.0
|
2 | // Project: https://github.com/ljharb/is-regex
|
3 | // Definitions by: Jordan Harband <https://github.com/ljharb>
|
4 | // ExE Boss <https://github.com/ExE-Boss>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 |
|
7 | /**
|
8 | * Returns whether the value is a valid `RegExp` object with the `[[RegExpMatcher]]` internal slot.
|
9 | */
|
10 | declare function isRegex(value: any): value is RegExp;
|
11 | export = isRegex;
|