Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/is-regex

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/is-regex - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

is-regex/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for is-regex 1.0
// Project: https://github.com/ljharb/is-regex
// Definitions by: Jordan Harband <https://github.com/ljharb>
// ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**

@@ -8,0 +2,0 @@ * Returns whether the value is a valid `RegExp` object with the `[[RegExpMatcher]]` internal slot.

15

is-regex/package.json
{
"name": "@types/is-regex",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for is-regex",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-regex",
"license": "MIT",

@@ -9,9 +10,9 @@ "contributors": [

"name": "Jordan Harband",
"url": "https://github.com/ljharb",
"githubUsername": "ljharb"
"githubUsername": "ljharb",
"url": "https://github.com/ljharb"
},
{
"name": "ExE Boss",
"url": "https://github.com/ExE-Boss",
"githubUsername": "ExE-Boss"
"githubUsername": "ExE-Boss",
"url": "https://github.com/ExE-Boss"
}

@@ -28,4 +29,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "c5c0e214b698ba28c1e47e2c82300fca2c0a76f93eb801caf48da1bde225b2c9",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "6db492b887a727cde62de6f76296ba2de96f61e16d9ee776d32a2a7af879d5b9",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,17 @@ # Installation

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: Wed, 10 Jun 2020 15:40:55 GMT
* Last updated: Wed, 18 Oct 2023 01:17:35 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Jordan Harband](https://github.com/ljharb), and [ExE Boss](https://github.com/ExE-Boss).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc