Required Associated Typejavascriptkit 0.27.0JavaScriptKit
Element
JSTypedArray.swift:8associatedtype Element : ConstructibleFromJSValue, ConvertibleToJSValue = Self
associatedtype Element : ConstructibleFromJSValue, ConvertibleToJSValue = Self
import JavaScriptKit
Swift framework to interact with JavaScript through WebAssembly.
protocol TypedArrayElement
A protocol that allows a Swift numeric type to be mapped to the JavaScript TypedArray that holds integers of its type
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.
static var typedArrayClass: JSFunction { get }
The constructor function for the TypedArray class for this particular kind of number