UNPKG

427 BPlain TextView Raw
1export type Maybe<T> = T | null | undefined;
2
3export type ReactComponentLike =
4 | string
5 | ((props: any, context?: any) => any)
6 | (new (props: any, context?: any) => any);
7
8export type ReactElementLike = {
9 type: ReactComponentLike;
10 props: any;
11 key: string | number | null;
12};
13
14export type ReactNodeLike =
15 | {}
16 | ReactElementLike
17 | Array<ReactNodeLike>
18 | string
19 | number
20 | boolean
21 | null
22 | undefined;
23
\No newline at end of file