Necesito Programar Más

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

    1.0.0 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/map-values

    DownloadsWeekly Downloads

    75

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • types