Skip to content

Commit 05e7e06

Browse files
committed
virtual oneofs annotated as string literal unions
1 parent 952c7d1 commit 05e7e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ function buildType(ref, type) {
435435
push("");
436436
pushComment([
437437
oneof.comment || type.name + " " + oneof.name + ".",
438-
"@member {string|undefined} " + escapeName(oneof.name),
438+
"@member {" + oneof.oneof.map(JSON.stringify).join("|") + "|undefined} " + escapeName(oneof.name),
439439
"@memberof " + exportName(type),
440440
"@instance"
441441
]);

0 commit comments

Comments
 (0)