Skip to content

Commit

Permalink
fix type error in message reader
Browse files Browse the repository at this point in the history
  • Loading branch information
snosenzo committed Aug 30, 2023
1 parent 4039cc5 commit d542abc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/omgidl-serialization/src/MessageReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export class MessageReader<T = unknown> {
usesMemberHeader: boolean;
},
): Record<string, unknown> {
if (complexDef.aggregatedKind === "union") {
throw new Error(`Unions are not supported yet`);
}
const msg: Record<string, unknown> = {};

const { usesDelimiterHeader, usesMemberHeader, isTopLevel } = options;
Expand Down

0 comments on commit d542abc

Please sign in to comment.