Skip to content

Commit 27c3d53

Browse files
TS2Swift tests: use non-Promise callable const fixture
1 parent 1758695 commit 27c3d53

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/test/__snapshots__/ts2swift.test.js.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ exports[`ts2swift > snapshots Swift output for CallableConst.d.ts > CallableCons
5757
5858
@_spi(BridgeJS) import JavaScriptKit
5959
60-
@JSFunction func fetch(_ url: String) throws(JSException) -> JSPromise
60+
@JSFunction func fetch(_ url: String) throws(JSException) -> Response
61+
62+
@JSClass struct Response {
63+
}
6164
"
6265
`;
6366

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export interface Response {}
2-
export const fetch: (url: string) => Promise<Response>;
2+
export const fetch: (url: string) => Response;

0 commit comments

Comments
 (0)