UNPKG

847 BMarkdownView Raw
1# Installation
2> `npm install --save @types/is-data-descriptor`
3
4# Summary
5This package contains type definitions for is-data-descriptor (https://github.com/jonschlinkert/is-data-descriptor).
6
7# Details
8Files 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
11declare function isDataDesc(obj: unknown): obj is PropertyDescriptor;
12declare function isDataDesc<ObjectType extends object>(obj: ObjectType, key: keyof ObjectType): boolean;
13
14export = isDataDesc;
15
16````
17
18### Additional Details
19 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
20 * Dependencies: none
21
22# Credits
23These definitions were written by [Richie Bendall](https://github.com/Richienb).
24
\No newline at end of file