@types/colormap
@types/colormap
npm i @types/colormap
@types/colormap

@types/colormap

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

2.3.1 (see all)License:MITTypeScript:Built-In
npm i @types/colormap
Readme

Installation

npm install --save @types/colormap

Summary

This package contains type definitions for colormap (https://github.com/bpostlethwaite/colormap#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/colormap.

index.d.ts

// Type definitions for colormap 2.3
// Project: https://github.com/bpostlethwaite/colormap#readme
// Definitions by: Teddy De Puy <https://github.com/ruxpendp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function createColormap<T extends 'hex' | 'rgbaString' | 'rgba' | 'float'>(spec?: {
    alpha?: number | number[];
    colormap?:
        | string
        | Array<{
              index: number;
              rgb: [number, number, number] | [number, number, number, number];
          }>;
    format?: T;
    nshades?: number;
}): T extends 'rgba' | 'float' ? Array<[number, number, number, number]> : string[];

export = createColormap;

Additional Details

  • Last updated: Sun, 08 Aug 2021 02:01:23 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Teddy De Puy.

Downloads/wk

1.8K

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

204
VersionTagPublished
2.3.1
latest
1yr ago
2.3.1
ts4.7
1yr ago
2.3.1
ts4.6
1yr ago
2.3.1
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate