1 | // Type definitions for has 1.0
|
2 | // Project: https://github.com/tarruda/has
|
3 | // Definitions by: Jordan Harband <https://github.com/ljharb>
|
4 | // ExE Boss <https://github.com/ExE-Boss>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 |
|
7 | /**
|
8 | * Determines whether an object has an own property with the specified name.
|
9 | *
|
10 | * @param target The object that contains the property.
|
11 | * @param property A property name.
|
12 | *
|
13 | * @throws {TypeError} If `target` is nullish.
|
14 | */
|
15 | declare function hasOwnProperty<P extends PropertyKey>(target: {}, property: P): target is { [K in P]: unknown };
|
16 | export = hasOwnProperty;
|