UNPKG

563 BTypeScriptView Raw
1/**
2 * @name objectProperty
3 * @summary Assign a get property on the input object
4 */
5export declare function objectProperty<S>(that: object, key: string, getter: (key: string, index: number, self: S) => unknown, getName?: (key: string, index: number) => string, index?: number): void;
6/**
7 * @name objectProperties
8 * @summary Assign get properties on the input object
9 */
10export declare function objectProperties<S>(that: object, keys: string[], getter: (key: string, index: number, self: S) => unknown, getName?: (key: string, index: number) => string): void;