@wesjet/function.js
Version:
wesjet javascript library
17 lines (16 loc) • 702 B
TypeScript
/**
* Copyright (c) Wesbitty, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
export * from './omit.js';
export * from './pick.js';
type ValueOfRecord<R extends Record<any, any>> = R extends Record<any, infer V> ? V : never;
export declare const mapObjectValues: <O_In extends Record<any, any>, V_Out>(obj: O_In, mapValue: (key: keyof O_In, val: ValueOfRecord<O_In>) => V_Out) => { [K in keyof O_In]: V_Out; };
export declare const mergeDeep: <T extends Record<any, any>>(...objs: T[]) => T;
export type PartialDeep<T> = {
[P in keyof T]?: T[P] extends Record<any, any> ? PartialDeep<T[P]> : T[P];
};