mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
465 B
TypeScript
14 lines
465 B
TypeScript
// Type definitions for map-to-obj 0.2
|
|
// Project: https://github.com/egoist/map-to-obj#readme
|
|
// Definitions by: Jason Kwok <https://github.com/JasonHK>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.9
|
|
|
|
/**
|
|
* 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;
|