Skip to content

Commit

Permalink
fix: disallow primitive types with discriminators
Browse files Browse the repository at this point in the history
  • Loading branch information
skonves committed May 19, 2024
1 parent e7a4ab9 commit b052a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export type Union = {
meta?: Meta;
} & (
| {
discriminator?: undefined;
members: TypedValue[];
}
| {
Expand Down

0 comments on commit b052a0f

Please sign in to comment.