From 55339603f31c4ff1893d3e43ee82273d33f9b39e Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:09:27 +0100 Subject: [PATCH] docs: add `await` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 75b8463..b84978a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ functions. ```ts import { pipe } from "@core/pipe/async"; -const result = pipe( +const result = await pipe( 1, (v) => Promise.resolve(v + 1), // inferred as (v: number) => number | Promise (v) => Promise.resolve(v * 2), // inferred as (v: number) => number | Promise