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

    1.0.1 • Public • Published

    Installation

    npm install --save @types/parse-color

    Summary

    This package contains type definitions for parse-color (https://github.com/substack/parse-color).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-color.

    index.d.ts

    // Type definitions for parse-color 1.0
    // Project: https://github.com/substack/parse-color
    // Definitions by: Andrew Crites <https://github.com/ajcrites>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    declare namespace parseColor {
        interface Color {
            rgb: [number, number, number];
            hsl: [number, number, number];
            hsv: [number, number, number];
            cmyk: [number, number, number, number];
            keyword: string | undefined;
            hex: string;
            rgba: [number, number, number, number];
            hsla: [number, number, number, number];
            hsva: [number, number, number, number];
            cmyka: [number, number, number, number, number];
        }
    }
    declare function parseColor(cstr: string): parseColor.Color;
    export = parseColor;

    Additional Details

    • Last updated: Thu, 12 Aug 2021 21:01:29 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Andrew Crites.

    Keywords

    none

    Install

    npm i @types/parse-color

    DownloadsWeekly Downloads

    4,560

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • types