xtermjs: fix inital load term size

This commit is contained in:
Will Owens 2025-10-25 11:35:34 -05:00
parent 53e31a964e
commit 71b9db14e2
No known key found for this signature in database
GPG key ID: 8C8384B16B623DA6
6 changed files with 179 additions and 110 deletions

9
js/dist/waitFor.d.ts vendored Normal file
View file

@ -0,0 +1,9 @@
/**
* Waits for a DOM element matching the selector to exist in the document.
* Resolves immediately if it already exists.
*
* @param selector CSS selector for the element to wait for
* @param timeout Optional timeout in milliseconds (default: no timeout)
* @returns Promise that resolves with the found element
*/
export declare function waitForElement<T extends Element>(selector: string, timeout?: number): Promise<T>;