ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol ConvertibleToJSValue
Browse conforming typesObjects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol ConvertibleToJSValue
import JavaScriptKit
var jsValue: JSValue { get }
Create a JSValue that represents this object
func jsValue() -> JSValue
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
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.
protocol JSClosureProtocol : ConstructibleFromJSValue, ConvertibleToJSValue
JSClosureProtocol
wraps Swift closure objects for use in JavaScript. Conforming types are responsible for managing the lifetime of the closure they wrap, but can delegate that task to the user by requiring an explicit release()
call.
protocol TypedArrayElement : ConstructibleFromJSValue, ConvertibleToJSValue
A protocol that allows a Swift numeric type to be mapped to the JavaScript TypedArray that holds integers of its type