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: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/react
Credits
These definitions were written by aaronleopold.