@types/is-regex
Version:
TypeScript definitions for is-regex
25 lines (19 loc) • 817 B
Markdown
# Installation
> `npm install --save @types/is-regex`
# Summary
This package contains type definitions for is-regex (https://github.com/ljharb/is-regex).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-regex.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-regex/index.d.ts)
````ts
/**
* Returns whether the value is a valid `RegExp` object with the `[[RegExpMatcher]]` internal slot.
*/
declare function isRegex(value: any): value is RegExp;
export = isRegex;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: none
# Credits
These definitions were written by [Jordan Harband](https://github.com/ljharb), and [ExE Boss](https://github.com/ExE-Boss).