# @types/has

> TypeScript definitions for has

Latest version **1.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/has
pnpm add @types/has
yarn add @types/has
bun add @types/has
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2020-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/has
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/has
- npm.io page: https://npm.io/package/@types/has

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts3.0) — 2020-05-19
- 1.0.1 — 2023-10-18

## README

# 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).

---
_Source: https://npm.io/package/@types/has · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
