@types/map-to-obj
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/map-to-obj

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

2.97 kB

Total Files

5

Last publish

Collaborators

  • types