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

1.0.3 • Public • Published

Installation

npm install --save @types/map-values

Summary

This package contains type definitions for map-values (https://github.com/parshap/js-map-values#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/map-values.

index.d.ts

declare function mapValues<TKey extends string | number | symbol, TValue, TNewValue = TValue>(
    obj: Record<TKey, TValue>,
    mapFn: (value: TValue, key: TKey, obj: Record<TKey, TValue>) => TNewValue,
): Record<TKey, TNewValue>;

export = mapValues;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Rajas Paranjpe.

Dependents (0)

Package Sidebar

Install

npm i @types/map-values

Weekly Downloads

388

Version

1.0.3

License

MIT

Unpacked Size

3.09 kB

Total Files

5

Last publish

Collaborators

  • types