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
/**
* 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, and ExE Boss.