UNPKG

typescript-immutable-utils

Version:

Type-safe immutability helpers for simple objects and arrays

7 lines (6 loc) 311 B
export * from './arrays'; export * from './objects'; export * from './dicts'; import { Dict } from './dicts'; export declare function mapValues<T, R>(dict: Dict<T>, map: (value: T, key: string) => R): Dict<R>; export declare function mapValues<K, T, R>(src: Map<K, T>, map: (value: T, key: K) => R): Map<K, R>;