Files
headroom/frontend/node_modules/happy-dom/lib/browser/Browser.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

60 lines
1.7 KiB
TypeScript

import IBrowserSettings from './types/IBrowserSettings.js';
import BrowserContext from './BrowserContext.js';
import IOptionalBrowserSettings from './types/IOptionalBrowserSettings.js';
import BrowserPage from './BrowserPage.js';
import IBrowser from './types/IBrowser.js';
import BrowserExceptionObserver from './utilities/BrowserExceptionObserver.js';
import * as PropertySymbol from '../PropertySymbol.js';
/**
* Browser.
*/
export default class Browser implements IBrowser {
readonly contexts: BrowserContext[];
readonly settings: IBrowserSettings;
readonly console: Console | null;
[PropertySymbol.exceptionObserver]: BrowserExceptionObserver | null;
/**
* Constructor.
*
* @param [options] Options.
* @param [options.settings] Browser settings.
* @param [options.console] Console.
*/
constructor(options?: {
settings?: IOptionalBrowserSettings;
console?: Console;
});
/**
* Returns the default context.
*
* @returns Default context.
*/
get defaultContext(): BrowserContext;
/**
* Aborts all ongoing operations and destroys the browser.
*/
close(): Promise<void>;
/**
* Returns a promise that is resolved when all resources has been loaded, fetch has completed, and all async tasks such as timers are complete.
*
* @returns Promise.
*/
waitUntilComplete(): Promise<void>;
/**
* Aborts all ongoing operations.
*/
abort(): Promise<void>;
/**
* Creates a new incognito context.
*
* @returns Context.
*/
newIncognitoContext(): BrowserContext;
/**
* Creates a new page.
*
* @returns Page.
*/
newPage(): BrowserPage;
}
//# sourceMappingURL=Browser.d.ts.map