graphql
Version:
A Query Language and Runtime which can target any service.
9 lines (8 loc) • 311 B
TypeScript
import type { ObjMap, ReadOnlyObjMap } from "./ObjMap.js";
/**
* Creates an object map with the same keys as `map` and values generated by
* running each value of `map` thru `fn`.
*
* @internal
*/
export declare function mapValue<T, V>(map: ReadOnlyObjMap<T>, fn: (value: T, key: string) => V): ObjMap<V>;