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 ffb1a13Copy full SHA for ffb1a13
Plugins/BridgeJS/Sources/BridgeJSCore/SwiftToSkeleton.swift
@@ -25,6 +25,13 @@ 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
+ """
32
+ @JSClass struct JSPromise {}
33
34
+ )
35
}
36
37
public func addSourceFile(_ sourceFile: SourceFileSyntax, inputFilePath: String) {
0 commit comments