1 | # Installation
|
2 | > `npm install --save @types/is-data-descriptor`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for is-data-descriptor (https://github.com/jonschlinkert/is-data-descriptor).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-data-descriptor.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-data-descriptor/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for is-data-descriptor 1.0
|
12 | // Project: https://github.com/jonschlinkert/is-data-descriptor
|
13 | // Definitions by: Richie Bendall <https://github.com/Richienb>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 |
|
16 | declare function isDataDesc(obj: unknown): obj is PropertyDescriptor;
|
17 | declare function isDataDesc<ObjectType extends object>(obj: ObjectType, key: keyof ObjectType): boolean;
|
18 |
|
19 | export = isDataDesc;
|
20 |
|
21 | ````
|
22 |
|
23 | ### Additional Details
|
24 | * Last updated: Mon, 01 Nov 2021 00:01:22 GMT
|
25 | * Dependencies: none
|
26 | * Global values: none
|
27 |
|
28 | # Credits
|
29 | These definitions were written by [Richie Bendall](https://github.com/Richienb).
|
30 |
|
\ | No newline at end of file |