UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

6 lines (5 loc) 284 B
/// <reference types="react" /> /** https://github.com/Microsoft/TypeScript/issues/29729 */ export type LiteralUnion<T extends string> = T | (string & {}); export type AnyObject = Record<PropertyKey, any>; export type CustomComponent<P = AnyObject> = React.ComponentType<P> | string;