Installation
npm install --save @types/map-to-obj
Summary
This package contains type definitions for map-to-obj (https://github.com/egoist/map-to-obj#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/map-to-obj.
index.d.ts
/**
* Convert a `Map` instance into a plain `object`.
* @param map The target to be converted
*/
declare function MapToObj<K extends string | number | symbol, V>(map: Map<K, V>): Record<K, V>;
export = MapToObj;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Jason Kwok.