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
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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Andrew Crites.