@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
14 lines (13 loc) • 458 B
TypeScript
export type Slots<T> = {
[K in keyof T]: (props?: T[K]) => JSX.Element | string | JSX.Element[];
} & {
[name: string]: (props?: any) => JSX.Element | string | JSX.Element[];
};
export type ScopedSlots<T> = {
[K in keyof T]: (props?: T[K]) => JSX.Element | string | JSX.Element[];
} & {
[name: string]: (props?: any) => JSX.Element | string | JSX.Element[];
};
export type EventHandlers<E> = {
[K in keyof E]?: (payload: E[K]) => void;
};