city-casereport/miniprogram_npm/tdesign-miniprogram/progress/utils.d.ts
2023-12-06 14:22:42 +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;