export type Slots = { [K in keyof T]: (props?: T[K]) => JSX.Element | string | JSX.Element[]; } & { [name: string]: (props?: any) => JSX.Element | string | JSX.Element[]; }; export type ScopedSlots = { [K in keyof T]: (props?: T[K]) => JSX.Element | string | JSX.Element[]; } & { [name: string]: (props?: any) => JSX.Element | string | JSX.Element[]; }; export type EventHandlers = { [K in keyof E]?: (payload: E[K]) => void; };