We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af19b61 commit 020a9eaCopy full SHA for 020a9ea
TypeScriptPlugin/Implementation/ExportableFunction.swift
@@ -14,7 +14,7 @@ struct ExportableFunction: @unchecked Sendable {
14
15
extension ExportableFunction {
16
var typescriptInterface: String {
17
- var result = "async function \(name)("
+ var result = "function \(name)("
18
result.append(parameters.map { "\($0.name): \(Self.typeScriptType(for: $0.type))" }.joined(separator: ", "))
19
result.append("): Promise<")
20
result.append(returnType.map { Self.typeScriptType(for: $0) } ?? "void")
0 commit comments