UNPKG

487 BTypeScriptView Raw
1import * as React from 'react';
2/**
3 * Properties used by render function interface for providing overrideable render callbacks.
4 *
5 * @public
6 * {@docCategory IComponentAsProps}
7 */
8export declare type IComponentAsProps<T> = T & {
9 defaultRender?: React.ComponentType<T>;
10};
11/**
12 * Render function interface for providing overrideable render callbacks.
13 *
14 * @public
15 * {@docCategory IComponentAs}
16 */
17export declare type IComponentAs<T> = React.ComponentType<IComponentAsProps<T>>;