UNPKG

@types/define-properties

Version:
22 lines (20 loc) 707 B
declare namespace defineProperties { /** * Whether the current environment correctly supports property descriptors. */ const supportsDescriptors: boolean; } /** * Defines new properties in `map` as non-enumerable if they don't already * exist on `object`. * * @param object The object to define non-enumerable properties on. * @param map The map of newly defined properties. * @param predicates The optional predicates map, return `true` to override existing properties on `object`. */ declare function defineProperties<M extends object>( object: object, map: M & ThisType<any>, predicates?: Partial<Record<keyof M, () => boolean>>, ): void; export = defineProperties;