Skip to content

fx-flow v0.7.0 / flow / TryDoResult

Type alias: TryDoResult<T>

TryDoResult<T>: IsNever<T> extends true ? never : IsAny<T> extends true ? unknown : T extends Promise<infer U> ? Promise<Result<Awaited<U>>> : Result<T>

Type parameters

T

Source

packages/core/src/flow/tryDo.ts:5

Released under the MIT License.