- mapRecord<T, V>(record: T, transformers: V): { [ K in keyof T]: T[K] } & { [ K in keyof V]: ReturnType<NonNullable<V[K]>> }
-
Type Parameters
Type Parameters
-
T extends Record<string, any>
-
V extends Partial<{ [ K in string | number | symbol]: ((value: T[K], key: K) => any) }>
Parameters
-
record: T
-
transformers: V
Returns { [ K in keyof T]: T[K] } & { [ K in keyof V]: ReturnType<NonNullable<V[K]>> }