Skip to content

Commit

Permalink
Merge pull request #5 from ryoppippi/feature/readme
Browse files Browse the repository at this point in the history
docs: add `await`
  • Loading branch information
lambdalisue authored Oct 4, 2024
2 parents 2ea9e18 + 5533960 commit fdee976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<number>
(v) => Promise.resolve(v * 2), // inferred as (v: number) => number | Promise<number>
Expand Down

0 comments on commit fdee976

Please sign in to comment.