UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

10 lines (9 loc) 394 B
export type AnyFunction<T = any> = (...args: T[]) => any; export type Dict<T = any> = Record<string, T>; export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never; export type DistributiveUnion<T, U> = { [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]; } & DistributiveOmit<U, keyof T>; export type Pretty<T> = { [K in keyof T]: T[K]; } & {};