@types/map-values
@types/map-values
npm i @types/map-values
@types/map-values

@types/map-values

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.0.0 (see all)License:MITTypeScript:Built-In
npm i @types/map-values
Readme

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.

Downloads/wk

72

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

204
VersionTagPublished
1.0.0
latest
8mos ago
1.0.0
ts4.7
8mos ago
1.0.0
ts4.6
8mos ago
1.0.0
ts4.8
8mos ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate