New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/has

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/has - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

has/index.d.ts

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

// Type definitions for has 1.0
// Project: https://github.com/tarruda/has
// 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 @@ * Determines whether an object has an own property with the specified name.

15

has/package.json
{
"name": "@types/has",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for has",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has",
"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": "aab2f951aa07acbb585b32230262e1a068bbb646ae2877b72cdcf87cc6ac7b87",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "516f87259310d63c27a2ce8995d867069b33aff1eddbfb6fa2e97eae63badc2a",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,22 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has/index.d.ts)
````ts
/**
* Determines whether an object has an own property with the specified name.
*
* @param target The object that contains the property.
* @param property A property name.
*
* @throws {TypeError} If `target` is nullish.
*/
declare function hasOwnProperty<P extends PropertyKey>(target: {}, property: P): target is { [K in P]: unknown };
export = hasOwnProperty;
````
### Additional Details
* Last updated: Tue, 19 May 2020 23:09:20 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