UNPKG

@gdgt/hlsl-loader

Version:

Webpack loader for using HLSL in WebGL 2.0

13 lines 577 B
declare type KeyType<M> = M extends Map<infer K, unknown> ? K : never; declare type ValueType<M> = M extends Map<unknown, infer V> ? V : never; /** * Like Array.map, but for a Map. * * @param map - The Map to map. :\> * @param fn - Callback executed on each entry. The return value will be added to the collection. * @returns Array of values returned by the callback functions. * @internal */ export default function mapMap<M extends Map<unknown, unknown>, R>(map: M, fn: (value: ValueType<M>, key: KeyType<M>) => R): R[]; export {}; //# sourceMappingURL=mapMap.d.ts.map