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


Types conforming to this protocol can be constructed from JSValue.


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



static var typedArrayClass: JSFunction  

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