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

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/linear-gradient

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • types