1.0.3 • Published 6 months ago

@types/map-values v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for map-values 1.0
// Project: https://github.com/parshap/js-map-values#readme
// Definitions by: Rajas Paranjpe <https://github.com/ChocolateLoverRaj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Sat, 12 Feb 2022 03:31:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Rajas Paranjpe.

1.0.2

7 months ago

1.0.1

8 months ago

1.0.3

6 months ago

1.0.0

2 years ago