slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
14 lines (13 loc) • 443 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 {};