npm.io
1.0.2 • Published 2 years ago

@types/has

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Jordan Harband, and ExE Boss.