@donverduyn/react-runtime
Version:
effect-ts react integration
18 lines (17 loc) • 507 B
TypeScript
export declare function disableAsyncGlobals(): () => void;
export type RootOpts = {
mode?: 'hidden' | 'measurable';
parent?: HTMLElement;
id?: string;
};
/**
* Create a DOM container for a dry run.
* @param {Object} [opts]
* @param {'hidden'|'measurable'} [opts.mode='hidden']
* @param {HTMLElement} [opts.parent=document.body]
* @param {string} [opts.id='dry-root']
*/
export declare function createHiddenDomRoot(opts?: RootOpts): {
container: HTMLDivElement;
destroy(): void;
};