Skip to content

fx-flow v0.7.0 / pipe/strict / Awaited

Type alias: Awaited<T>

Awaited<T>: T extends null | undefined ? T : T extends object & object ? F extends (value, ...args) => any ? Awaited<V> : never : T

Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to never. This emulates the behavior of await.

Type parameters

T

Source

node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1563

Released under the MIT License.