Overview
typeCore Result

Awaitable

Represents a value that may be returned directly or through a Promise.

Signature

tsSignature
export type Awaitable<T> = T | Promise<T>;

Imports

tsImport
import { Awaitable } from "@/lib/flow/core/result";
import { Awaitable } from "@/lib/flow";

Type Parameters

T

Value produced either immediately or asynchronously.

Details

Flow helpers accept `Awaitable` callbacks so synchronous and asynchronous logic can share the

same behavior authoring APIs.

Source

tsflow/core/result.ts:9-9
export type Awaitable<T> = T | Promise<T>;