Files
2025-10-01 10:01:52 +08:00

12 lines
320 B
TypeScript

export declare type Gradients = {
[percent: string]: string;
};
export declare type FromTo = {
from: string;
to: string;
};
export declare type LinearGradient = {
direction?: string;
} & (Gradients | FromTo);
export declare function getBackgroundColor(color: string | string[] | LinearGradient): string;