Skip to content

Commit

Permalink
fix: Type converters threw on older TS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 28, 2020
1 parent 83c18b8 commit 1161cb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/converter/types.ts
Expand Up @@ -77,6 +77,10 @@ export function loadConverters() {
unionConverter,
]) {
for (const key of actor.kind) {
if (key === undefined) {
// Might happen if running on an older TS version.
continue;
}
assert(!converters.has(key));
converters.set(key, actor);
}
Expand Down

0 comments on commit 1161cb2

Please sign in to comment.