UNPKG

393 BTypeScriptView Raw
1import React, { ComponentPropsWithRef, ComponentType, ExoticComponent } from 'react';
2import { CompProps } from './internals';
3declare type LazyExoticComponent<T extends ComponentType<any>> = ExoticComponent<ComponentPropsWithRef<T>> & {
4 readonly _result: T;
5};
6export declare const useLazyComponent: <T>(compProps: CompProps<T>) => LazyExoticComponent<React.ComponentType<T>>;
7export {};