Skip to content

Commit

Permalink
Strip properties with never values on polymorphic unions
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Sep 3, 2024
1 parent 31ec38b commit 7131057
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/generate/src/syntax/typesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ type computePolyElShape<PolyEls, PolyTypeName> = typeutil.flatten<
>
: never
: never;
}
} extends infer Shape
? Shape extends unknown
? typeutil.stripNever<Shape>
: never
: never
: never
>;

Expand Down

0 comments on commit 7131057

Please sign in to comment.