Protocolswiftwasm.webapikit 0.1.0DOM
WindowOrWorkerGlobalScope
Generated.swift:18346protocol WindowOrWorkerGlobalScope : JSBridgedClass
Browse conforming typesprotocol WindowOrWorkerGlobalScope : JSBridgedClass
import DOM
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
var caches: CacheStorage { get }
var crossOriginIsolated: Bool { get }
var isSecureContext: Bool { get }
var origin: String { get }
var performance: Performance { get }
func atob(data: String) -> String
func btoa(data: String) -> String
func clearInterval(id: Int32? = nil)
func clearTimeout(id: Int32? = nil)
func createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions? = nil) -> JSPromise
func createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions? = nil) async throws -> ImageBitmap
func createImageBitmap(image: ImageBitmapSource, sx: Int32, sy: Int32, sw: Int32, sh: Int32, options: ImageBitmapOptions? = nil) -> JSPromise
func createImageBitmap(image: ImageBitmapSource, sx: Int32, sy: Int32, sw: Int32, sh: Int32, options: ImageBitmapOptions? = nil) async throws -> ImageBitmap
func fetch(input: RequestInfo, init: RequestInit? = nil) -> JSPromise
func fetch(input: RequestInfo, init: RequestInit? = nil) async throws -> Response
func queueMicrotask(callback: @escaping VoidFunction)
func reportError(e: JSValue)
func setInterval(handler: TimerHandler, timeout: Int32? = nil, arguments: JSValue...) -> Int32
func setTimeout(handler: TimerHandler, timeout: Int32? = nil, arguments: JSValue...) -> Int32
func structuredClone(value: JSValue, options: StructuredSerializeOptions? = nil) -> JSValue