npm.io
0.2.2 • Published 2 years ago

@types/map-to-obj

Licence
MIT
Version
0.2.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Jason Kwok.