Skip to content

Pick with union of unions of literals generates wrong additionalProperties. #2231

Open
@arthurfiorette

Description

@arthurfiorette
          Just to clarify what's not covered in this PR: the fix only dereferences the top-level union keys, but not nested aliases.

For example:

SomeInterface {
  a: number;
  b: string;
  c: boolean;
}

type AB = "a" | "b";
type C = "c";

export type Test = Pick<SomeInterface, AB | C>;

still produces unexpected "additionalProperties"

Originally posted by @alexchexes in #2230 (comment)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions