import { CSSProperties, HTMLAttributes } from 'react'; export type AnyFunction = (...args: any[]) => any; export interface CSSPropertiesWithVariable extends CSSProperties { [key: `--${string}`]: string | number; } export type StyleWithVariable = CSSProperties & Partial>; export type HTMLAttributeWithStyleVariable = HTMLAttributes & { style?: StyleWithVariable; }; /** 省略 styles 和 classNames 函数类型的属性 */ export type OmitStylesAndClassFuncType> = Omit & { styles?: Exclude; classNames?: Exclude; };