import { CSSClass } from '../variant' export interface IComponentWithRoot extends Record { root?: string // classes?: string | undefined // base?: CSSClass variants?: Record> // variant?: string } export type IComponentWithRootType = { [P in keyof T]: P extends 'variant' ? string | undefined | (string | undefined)[] : T[P] }