Methods
addEventListener
- addEventListener(name: string, fn: (...args: unknown[]) => void): void
-
Parameters
-
name: string
-
fn: (...args: unknown[]) => void
-
- (...args: unknown[]): void
Returns void
postMessage
- postMessage(message: { args?: unknown[]; funcName: string; transfer: Transferable[] }): void
-
Parameters
-
message: { args?: unknown[]; funcName: string; transfer: Transferable[] }
-
Optional args?: unknown[]
-
funcName: string
-
transfer: Transferable[]
Returns void
removeEventListener
- removeEventListener(name: string, fn: (...args: unknown[]) => void): void
-
Parameters
-
name: string
-
fn: (...args: unknown[]) => void
-
- (...args: unknown[]): void
Returns void