lix-website/themes/lix/assets/bootstrap/node_modules/is-regexp/index.d.ts
2024-04-26 22:49:34 -06:00

21 lines
296 B
TypeScript

/**
Check if a value is a regular expression.
@example
```
import isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
```
*/
declare function isRegexp(input: unknown): input is RegExp;
export = isRegexp;