On this page
typescript/utility_types/union_and_nullability
Prev: object_transforms | Up: utility_types | Next: function_and_promise
Rel: Conditional & Mapped Types, typescript/builtins
Ref: TypeScript Docs — Utility Types
Tags: #public #web #typescript #utility-types #union_and_nullability #index
Overview
Distributive conditional utilities for filtering union members and stripping nullish types.
Core (#tier/core)
- `Exclude<T>` — Removes union members assignable to
ExcludedMembers. - `NonNullable<T>` — Removes
nullandundefinedfromT.
Standard (#tier/standard)
- `Extract<T>` — Keeps only union members assignable to
Union.
Linked from
- tuts/typescript/utility_types
- tuts/typescript/utility_types/function_and_promise
- tuts/typescript/utility_types/object_transforms
- tuts/typescript/utility_types/object_transforms/Omit
- tuts/typescript/utility_types/union_and_nullability/Exclude
- tuts/typescript/utility_types/union_and_nullability/Extract
- tuts/typescript/utility_types/union_and_nullability/NonNullable
Related notes
- tuts/typescript/utility_types Linked here; links to this page; shared tags: #index, #typescript, #web
- tuts/typescript/utility_types/function_and_promise Linked here; links to this page; shared tags: #index, #typescript, #web
- tuts/typescript/utility_types/object_transforms Linked here; links to this page; shared tags: #index, #typescript, #web
- tuts/typescript/utility_types/union_and_nullability/Exclude Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/union_and_nullability/Extract Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/union_and_nullability/NonNullable Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/builtins Linked here; shared tags: #index, #typescript, #web
- tuts/typescript/type_system/conditional_and_mapped_types Linked here; shared tags: #typescript, #web
- tuts/typescript/utility_types/object_transforms/Omit links to this page; shared tags: #typescript, #web
- tuts/typescript shared tags: #index, #typescript, #web