import { type IWindow } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Window.
Properties
readonly
happyDOM: { whenAsyncComplete: () => Promise<void>; cancelAsync: () => void; asyncTaskManager: AsyncTaskManager; }onload: (event: Event) => void
onerror: (event: ErrorEvent) => void
readonly
document: Documentreadonly
customElements: CustomElementRegistryreadonly
location: Locationreadonly
history: Historyreadonly
console: Consolereadonly
self: IWindowreadonly
top: IWindowreadonly
parent: IWindowreadonly
window: IWindowreadonly
screen: Screenreadonly
sessionStorage: Storagereadonly
localStorage: StorageMethods
getComputedStyle(element: HTMLElement): CSSStyleDeclaration
Returns an object containing the values of all CSS properties of an element.
Scrolls to a particular set of coordinates.
Scrolls to a particular set of coordinates.
Sets a timer which executes a function once the timer expires.
Cancels a timeout previously established by calling setTimeout().
Calls a function with a fixed time delay between each call.
Cancels a timed repeating action which was previously established by a call to setInterval().
Mock animation frames with timeouts.
fetch(url: string, options?: IFetchOptions): Promise<IResponse>
Provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the network.