Comparing version 1.0.0 to 1.0.1
@@ -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. |
{ | ||
"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). |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3403
0
30
10
1