From 05e7e0636727008c72549459b8594fa0442d346f Mon Sep 17 00:00:00 2001 From: Cory Li Date: Wed, 26 Jul 2017 20:57:25 -0700 Subject: [PATCH] virtual oneofs annotated as string literal unions --- cli/targets/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/targets/static.js b/cli/targets/static.js index fd62421bc..e06c2b472 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -435,7 +435,7 @@ function buildType(ref, type) { push(""); pushComment([ oneof.comment || type.name + " " + oneof.name + ".", - "@member {string|undefined} " + escapeName(oneof.name), + "@member {" + oneof.oneof.map(JSON.stringify).join("|") + "|undefined} " + escapeName(oneof.name), "@memberof " + exportName(type), "@instance" ]);