remotion
Version:
Render videos in React
8 lines (7 loc) • 390 B
TypeScript
import type { ComponentPropsWithRef, ComponentType, ExoticComponent } from 'react';
import type { CompProps } from './internals';
declare type LazyExoticComponent<T extends ComponentType<any>> = ExoticComponent<ComponentPropsWithRef<T>> & {
readonly _result: T;
};
export declare const useLazyComponent: <T>(compProps: CompProps<T>) => LazyExoticComponent<ComponentType<T>>;
export {};