@types/has
Version:
TypeScript definitions for has
30 lines (24 loc) • 981 B
Markdown
# Installation
> `npm install --save @types/has`
# Summary
This package contains type definitions for has (https://github.com/tarruda/has).
# Details
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, 07 Nov 2023 03:09:37 GMT
* Dependencies: none
# Credits
These definitions were written by [Jordan Harband](https://github.com/ljharb), and [ExE Boss](https://github.com/ExE-Boss).