Global Functionjavascriptkit 0.24.0JavaScriptKit
getJSValue(this:symbol:)
JSValue.swift:238func getJSValue(this: JSObject, symbol: JSSymbol) -> JSValue
func getJSValue(this: JSObject, symbol: JSSymbol) -> JSValue
s13JavaScriptKit10getJSValue4this6symbolAA0E0OAA8JSObjectC_AA8JSSymbolCtF
What are these?8WYWJ
import JavaScriptKit
Swift framework to interact with JavaScript through WebAssembly.
@dynamicMemberLookup class JSObject
JSObject
represents an object in JavaScript and supports dynamic member lookup. Any member access like object.foo
will dynamically request the JavaScript and Swift runtime bridge library for a member with the specified name in this object.
class JSSymbol
A wrapper around the JavaScript Symbol
class that exposes its properties in a type-safe and Swifty way.
@dynamicMemberLookup enum JSValue
JSValue
represents a value in JavaScript.