Skip to content

Commit 04dffe7

Browse files
Cover type alias doc comments in ts2swift snapshots
1 parent df0d043 commit 04dffe7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,9 @@ exports[`ts2swift > snapshots Swift output for TypeAliasObject.d.ts > TypeAliasO
437437
438438
@JSFunction func console() throws(JSException) -> Console
439439
440+
/// Console from the environment.
440441
@JSClass struct Console {
442+
/// Log a message.
441443
@JSFunction func log(_ message: String) throws(JSException) -> Void
442444
}
443445
"

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/test/fixtures/TypeAliasObject.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
/**
2+
* Console from the environment.
3+
*/
14
export type Console = {
5+
/**
6+
* Log a message.
7+
*/
28
log(message: string): void;
39
};
410

0 commit comments

Comments
 (0)