Assert that a type is a RegExp.
RegExp
Type that must be a RegExp
Ensures the type extends the built-in RegExp object.
type A = AssertRegExp< RegExp >; // ✓type B = AssertRegExp< string >; // ✗ TS error Copy
type A = AssertRegExp< RegExp >; // ✓type B = AssertRegExp< string >; // ✗ TS error
Assert that a type is a
RegExp.