Window overview
Low-level Effect wrappers for Window and its usage via Context.
Added in v8.19.0
Table of contents
context
Window
Context for the Window object
Signature
export declare const Window: Context.Tagged<Window, Window>
Added in v8.19.0
events
addWindowListener
Add an event listener to the Window
Signature
export declare const addWindowListener: <EventName extends string, R = never>(
options: EventTarget.AddEventListenerOptions<Window, EventName, R>
) => Effect.Effect<void, never, Scope.Scope | Window | R>
Added in v8.19.0
getters
getComputedStyle
Get the computed style of an Element
Signature
export declare const getComputedStyle: (el: Element) => Effect.Effect<CSSStyleDeclaration, never, Window>
Added in v8.19.0
getInnerHeight
Get the innerHeight from the Window
Signature
export declare const getInnerHeight: Effect.Effect<number, never, Window>
Added in v8.19.0
getInnerWidth
Get the innerWidth from the Window
Signature
export declare const getInnerWidth: Effect.Effect<number, never, Window>
Added in v8.19.0
models
Window (interface)
Context for the Window object
Signature
export interface Window extends globalThis.Window {}
Added in v8.19.0