Skip to content

Commit 08c059e

Browse files
AV-IOoleavr
authored andcommittedApr 4, 2019
Fix handling of union type encodings (#15)
1 parent 98f089c commit 08c059e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ function Runtime() {
21622162
} else if (id === '(') {
21632163
readUntil('=', cursor);
21642164
const unionFields = [];
2165-
while (peekChar(cursor) !== '}')
2165+
while (peekChar(cursor) !== ')')
21662166
unionFields.push(readType(cursor));
21672167
skipChar(cursor); // ')'
21682168
return unionType(unionFields);

0 commit comments

Comments
 (0)
Please sign in to comment.