
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@types/gradient-string
Advanced tools
TypeScript definitions for gradient-string
npm install --save @types/gradient-string
This package contains type definitions for gradient-string (https://github.com/bokub/gradient-string).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gradient-string.
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;
These definitions were written by .
FAQs
TypeScript definitions for gradient-string
The npm package @types/gradient-string receives a total of 68,258 weekly downloads. As such, @types/gradient-string popularity was classified as popular.
We found that @types/gradient-string demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.