Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getWindow

Gets the window object for the given target or the global window object if no target is provided.

function getWindow(target?:
| Node
| ShadowRoot
| Document
| null
): Window & globalThis;
§
getWindow(target?: Node | ShadowRoot | Document | null): Window & globalThis
[src]

§Parameters

§
target?: Node | ShadowRoot | Document | null optional
[src]

§Return Type

§
Window & globalThis
[src]