File size: 322 Bytes
ec8acdf | 1 2 3 4 5 6 7 8 9 10 11 12 13 | export interface WelcomeRootElement {
replaceChildren?: () => void;
textContent: string | null;
}
export function clearWelcomeRoot(rootElement: WelcomeRootElement): void {
if (typeof rootElement.replaceChildren === 'function') {
rootElement.replaceChildren();
} else {
rootElement.textContent = '';
}
}
|