antd-mobile
Version:
<div align="center">
14 lines (13 loc) • 430 B
TypeScript
import type { ReactElement } from 'react';
declare type ImperativeProps = {
visible?: boolean;
onClose?: () => void;
afterClose?: () => void;
};
declare type TargetElement = ReactElement<ImperativeProps>;
export declare type ImperativeHandler = {
close: () => void;
replace: (element: TargetElement) => void;
};
export declare function renderImperatively(element: TargetElement): ImperativeHandler;
export {};