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

2.3.4 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Teddy De Puy.

/@types/colormap/

    Package Sidebar

    Install

    npm i @types/colormap

    Weekly Downloads

    4,336

    Version

    2.3.4

    License

    MIT

    Unpacked Size

    3.42 kB

    Total Files

    5

    Last publish

    Collaborators

    • types