1 | // Type definitions for is-data-descriptor 1.0
|
2 | // Project: https://github.com/jonschlinkert/is-data-descriptor
|
3 | // Definitions by: Richie Bendall <https://github.com/Richienb>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | declare function isDataDesc(obj: unknown): obj is PropertyDescriptor;
|
7 | declare function isDataDesc<ObjectType extends object>(obj: ObjectType, key: keyof ObjectType): boolean;
|
8 |
|
9 | export = isDataDesc;
|