@types/has
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

/@types/has/

    Package Sidebar

    Install

    npm i @types/has

    Weekly Downloads

    19,724

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • types