JavaScriptKit Documentation

Protocol Typed​Array​Element

public protocol TypedArrayElement: ConvertibleToJSValue, ConstructibleFromJSValue  

A protocol that allows a Swift numeric type to be mapped to the JavaScript TypedArray that holds integers of its type

%63 TypedArrayElement TypedArrayElement ConstructibleFromJSValue ConstructibleFromJSValue TypedArrayElement->ConstructibleFromJSValue ConvertibleToJSValue ConvertibleToJSValue TypedArrayElement->ConvertibleToJSValue

Conforms To

ConstructibleFromJSValue

Types conforming to this protocol can be constructed from JSValue.

ConvertibleToJSValue

Objects that can be converted to a JavaScript value, preferably in a lossless manner.

Requirements

typed​Array​Class

static var typedArrayClass: JSFunction  

The constructor function for the TypedArray class for this particular kind of number