# @types/gradient-string

> TypeScript definitions for gradient-string

Latest version **1.1.6** (published 2024-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gradient-string
pnpm add @types/gradient-string
yarn add @types/gradient-string
bun add @types/gradient-string
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2024-04-03 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gradient-string
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gradient-string
- npm.io page: https://npm.io/package/@types/gradient-string

## Dependencies (1)

- [@types/tinycolor2](https://npm.io/package/@types/tinycolor2.md) *

## Recent versions

- 1.1.6 (latest) — 2024-04-03
- 1.1.5 (ts4.5) — 2023-11-07
- 1.1.2 (ts3.6) — 2021-07-08
- 1.1.1 (ts3.0) — 2020-05-15
- 1.1.0 (ts2.1) — 2018-08-02
- 1.1.4 — 2023-10-18
- 1.1.3 — 2023-09-20

## README

# Installation
> `npm install --save @types/gradient-string`

# Summary
This package contains type definitions for gradient-string (https://github.com/bokub/gradient-string).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gradient-string.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gradient-string/index.d.ts)
````ts
import tinycolor = require("tinycolor2");

declare namespace gradient {
    interface PositionedColorInput {
        color: tinycolor.ColorInput;
        pos: number;
    }

    interface Gradient {
        (message?: string, opt?: Options): string;
        multiline(message?: string, opt?: Options): string;
    }

    interface Options {
        interpolation?: string | undefined;
        hsvSpin?: string | undefined;
    }

    const atlas: Gradient;
    const cristal: Gradient;
    const teen: Gradient;
    const mind: Gradient;
    const morning: Gradient;
    const vice: Gradient;
    const passion: Gradient;
    const fruit: Gradient;
    const instagram: Gradient;
    const retro: Gradient;
    const summer: Gradient;
    const rainbow: Gradient;
    const pastel: Gradient;
}

declare function gradient(colors: tinycolor.ColorInput[] | gradient.PositionedColorInput[]): gradient.Gradient;
declare function gradient(...colors: tinycolor.ColorInput[]): gradient.Gradient;
declare function gradient(...colors: gradient.PositionedColorInput[]): gradient.Gradient;
export = gradient;

````

### Additional Details
 * Last updated: Wed, 03 Apr 2024 18:35:48 GMT
 * Dependencies: [@types/tinycolor2](https://npmjs.com/package/@types/tinycolor2)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/gradient-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
