1 | # Installation
|
2 | > `npm install --save @types/define-properties`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for define-properties (https://github.com/ljharb/define-properties#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/define-properties.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/define-properties/index.d.ts)
|
10 | ````ts
|
11 | declare namespace defineProperties {
|
12 | /**
|
13 | * Whether the current environment correctly supports property descriptors.
|
14 | */
|
15 | const supportsDescriptors: boolean;
|
16 | }
|
17 |
|
18 | /**
|
19 | * Defines new properties in `map` as non-enumerable if they don't already
|
20 | * exist on `object`.
|
21 | *
|
22 | * @param object The object to define non-enumerable properties on.
|
23 | * @param map The map of newly defined properties.
|
24 | * @param predicates The optional predicates map, return `true` to override existing properties on `object`.
|
25 | */
|
26 | declare function defineProperties<M extends object>(
|
27 | object: object,
|
28 | map: M & ThisType<any>,
|
29 | predicates?: Partial<Record<keyof M, () => boolean>>,
|
30 | ): void;
|
31 | export = defineProperties;
|
32 |
|
33 | ````
|
34 |
|
35 | ### Additional Details
|
36 | * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
37 | * Dependencies: none
|
38 |
|
39 | # Credits
|
40 | These definitions were written by [ExE Boss](https://github.com/ExE-Boss), and [Jordan Harband](https://github.com/ljharb).
|
41 |
|
\ | No newline at end of file |