Required Static Propertyjavascriptkit 0.24.0JavaScriptKit
constructor
The constructor function for the JavaScript class
static var constructor: JSFunction? { get }
The constructor function for the JavaScript class
static var constructor: JSFunction? { get }
s13JavaScriptKit14JSBridgedClassP11constructorAA10JSFunctionCSgvpZ
What are these?6FK4U
import JavaScriptKit
Swift framework to interact with JavaScript through WebAssembly.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
class JSFunction
JSFunction
represents a function in JavaScript and supports new object instantiation. This type can be callable as a function using callAsFunction
.
init(unsafelyWrapping jsObject: JSObject)
Create an instance wrapping the given JavaScript object. You may assume that jsObject instanceof Self.constructor
var jsObject: JSObject { get }
The JavaScript object wrapped by this instance. You may assume that jsObject instanceof Self.constructor == true