We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c24c337 commit 4043e2bCopy full SHA for 4043e2b
Sources/JavaScriptKit/JSValueConvertible.swift
@@ -1,13 +1,14 @@
1
import _CJavaScriptKit
2
3
public protocol JSBridgedType: JSValueCodable, CustomStringConvertible {
4
- static var constructor: JSFunctionRef? { get }
+ static var classRef: JSFunctionRef? { get }
5
6
var objectRef: JSObjectRef { get }
7
init(objectRef: JSObjectRef)
8
}
9
10
extension JSBridgedType {
11
+ static var classRef: JSFunctionRef? { nil }
12
public var description: String {
13
return objectRef.toString!().fromJSValue()
14
0 commit comments