Installation
npm install --save @types/ink-gradient
Summary
This package contains type definitions for ink-gradient (https://github.com/sindresorhus/ink-gradient).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-gradient.
import * as React from "react";
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
interface PropsName {
name:
| "cristal"
| "teen"
| "mind"
| "morning"
| "vice"
| "passion"
| "fruit"
| "instagram"
| "atlas"
| "retro"
| "summer"
| "pastel"
| "rainbow";
}
interface PropsColor {
colors: string[] | object[];
}
type GradientProps = XOR<PropsName, PropsColor> & { children: React.ReactNode };
declare const Gradient: React.FC<GradientProps>;
export = Gradient;
Additional Details
- Last updated: Wed, 18 Oct 2023 01:17:35 GMT
- Dependencies: @types/react
Credits
These definitions were written by aaronleopold.