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

0.6.2 • Public • Published

Installation

npm install --save @types/chartjs-color-string

Summary

This package contains type definitions for chartjs-color-string (https://github.com/chartjs/chartjs-color-string#readme).

Details

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

index.d.ts

export function getRgba(colorString?: string): number[] | undefined;
export function getHsla(colorString?: string): number[] | undefined;
export function getHwb(colorString?: string): number[] | undefined;
export function getRgb(colorString?: string): number[] | undefined;
export function getHsl(colorString?: string): number[] | undefined;
export function getAlpha(colorString?: string): number | undefined;

export function hexString(rgba: number[], a?: number): string;
export function rgbString(rgba: number[], alpha?: number): string;
export function rgbaString(rgba: number[], alpha?: number): string;
export function percentString(rgba: number[], alpha?: number): string;
export function percentaString(rgba: number[], alpha?: number): string;
export function hslString(hsla: number[], alpha?: number): string;
export function hslaString(hsla: number[], alpha?: number): string;
export function hwbString(hwb: number[], alpha?: number): string;
export function keyword(rgb: number[]): string;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Ankan Bhattacharya.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chartjs-color-string

Weekly Downloads

413

Version

0.6.2

License

MIT

Unpacked Size

4.65 kB

Total Files

5

Last publish

Collaborators

  • types