Installation
npm install --save @types/linear-gradient
Summary
This package contains type definitions for linear-gradient (https://github.com/karmadata/linear-gradient#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/linear-gradient.
index.d.ts
type Color = [number, number, number];
declare class Gradient {
constructor(colors: Color[]);
/**
* the input value should be normalized to the range between 0 and 1
*/
calcArray(normalizedPercent: number): Color;
/**
* the input value should be normalized to the range between 0 and 1
*/
calcHex(normalizedPrecent: number): string;
}
export = Gradient;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: none
Credits
These definitions were written by Jack Works.