forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBridgeJS.Macros.swift
More file actions
34 lines (23 loc) · 1.27 KB
/
BridgeJS.Macros.swift
File metadata and controls
34 lines (23 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// NOTICE: This is auto-generated code by BridgeJS from JavaScriptKit,
// DO NOT EDIT.
//
// To update this file, just rebuild your project or run
// `swift package bridge-js`.
@_spi(Experimental) import JavaScriptKit
@JSFunction func jsRoundTripVoid() throws (JSException) -> Void
@JSFunction func jsRoundTripNumber(_ v: Double) throws (JSException) -> Double
@JSFunction func jsRoundTripBool(_ v: Bool) throws (JSException) -> Bool
@JSFunction func jsRoundTripString(_ v: String) throws (JSException) -> String
@JSFunction func jsThrowOrVoid(_ shouldThrow: Bool) throws (JSException) -> Void
@JSFunction func jsThrowOrNumber(_ shouldThrow: Bool) throws (JSException) -> Double
@JSFunction func jsThrowOrBool(_ shouldThrow: Bool) throws (JSException) -> Bool
@JSFunction func jsThrowOrString(_ shouldThrow: Bool) throws (JSException) -> String
@JSClass struct JsGreeter {
@JSGetter var name: String
@JSSetter func setName(_ value: String) throws (JSException)
@JSGetter var `prefix`: String
@JSFunction init(_ name: String, _ `prefix`: String) throws (JSException)
@JSFunction func greet() throws (JSException) -> String
@JSFunction func changeName(_ name: String) throws (JSException) -> Void
}
@JSFunction func runAsyncWorks() throws (JSException) -> JSPromise