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 966daba commit 2e65d4bCopy full SHA for 2e65d4b
Plugins/BridgeJS/Sources/BridgeJSCore/SwiftToSkeleton.swift
@@ -25,6 +25,11 @@ public final class SwiftToSkeleton {
25
self.moduleName = moduleName
26
self.exposeToGlobal = exposeToGlobal
27
self.typeDeclResolver = TypeDeclResolver()
28
+
29
+ // Index known types provided by JavaScriptKit
30
+ self.typeDeclResolver.addSourceFile("""
31
+ @JSClass struct JSPromise {}
32
+ """)
33
}
34
35
public func addSourceFile(_ sourceFile: SourceFileSyntax, inputFilePath: String) {
0 commit comments