On this page
typescript/utility_types/function_and_promise
Prev: union_and_nullability | Up: utility_types | Next: string_manipulation
Rel: Conditional & Mapped Types, typescript/builtins
Ref: TypeScript Docs — Utility Types
Tags: #public #web #typescript #utility-types #function_and_promise #index
Overview
Extracting signatures, unwrapped promise results, and controlling generic inference.
Core (#tier/core)
- `ReturnType<T>` — Extracts the return type of a function type
Fn. - `Parameters<T>` — Extracts the parameter list of a function type
Fnas a tuple. - `Awaited<T>` — Recursively unwraps
Promise/ thenable types, mirroring runtimeawait.
Standard (#tier/standard)
- `NoInfer<T>` — Blocks TypeScript from inferring a generic type parameter from a specific argument position (TS 5.4+).
Specialized (#tier/specialized)
- `ConstructorParameters<T>` — Extracts constructor parameter types of a class constructor as a tuple.
- `InstanceType<T>` — Extracts the instance type constructed by a class constructor type.
- `ThisParameterType<T>` — Extracts the explicit
thisparameter type from a function signature (orunknownif none).
Linked from
- tuts/typescript/utility_types
- tuts/typescript/utility_types/function_and_promise/Awaited
- tuts/typescript/utility_types/function_and_promise/ConstructorParameters
- tuts/typescript/utility_types/function_and_promise/InstanceType
- tuts/typescript/utility_types/function_and_promise/NoInfer
- tuts/typescript/utility_types/function_and_promise/Parameters
- tuts/typescript/utility_types/function_and_promise/ReturnType
- tuts/typescript/utility_types/function_and_promise/ThisParameterType
- tuts/typescript/utility_types/string_manipulation
- tuts/typescript/utility_types/union_and_nullability
- 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/string_manipulation Linked here; links to this page; shared tags: #index, #typescript, #web
- tuts/typescript/utility_types/union_and_nullability Linked here; links to this page; shared tags: #index, #typescript, #web
- tuts/typescript/utility_types/function_and_promise/Awaited Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/ConstructorParameters Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/InstanceType Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/NoInfer Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/Parameters Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/ReturnType Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/utility_types/function_and_promise/ThisParameterType Linked here; links to this page; shared tags: #typescript, #web