UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

9 lines (8 loc) 312 B
import type { ObjMap, ReadOnlyObjMap } from "./ObjMap.mjs"; /** * 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>;