We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Constructs a type by excluding from UnionType all union members that are assignable to ExcludedMembers.
type T0 = Exclude<"a" | "b" | "c", "a">; type T0 = "b" | "c" type T1 = Exclude<"a" | "b" | "c", "a" | "b">; type T1 = "c" type T2 = Exclude<string | number | (() => void), Function>;
The text was updated successfully, but these errors were encountered:
/** * Exclude from T those types that are assignable to U */ type Exclude<T, U> = T extends U ? never : T;
Sorry, something went wrong.
No branches or pull requests
Constructs a type by excluding from UnionType all union members that are assignable to ExcludedMembers.
The text was updated successfully, but these errors were encountered: