diff --git a/functions/mod.ts b/functions/mod.ts index 25e57da63b69..c04e0c4120a6 100644 --- a/functions/mod.ts +++ b/functions/mod.ts @@ -5,6 +5,9 @@ * Utilities for working with functions. * * ```ts + * import { pipe } from "@std/functions"; + * import { assertEquals } from "@std/assert"; + * * const myPipe = pipe( * Math.abs, * Math.sqrt, @@ -17,4 +20,4 @@ * @module */ -export * from "./pipe.ts"; +export { pipe } from "./pipe.ts"; diff --git a/functions/pipe.ts b/functions/pipe.ts index bce742580e03..1659dec70973 100644 --- a/functions/pipe.ts +++ b/functions/pipe.ts @@ -24,6 +24,8 @@ type PipeArgs = F extends [ * * @example Usage * ```ts + * import { assertEquals } from "@std/assert"; + * * const myPipe = pipe( * Math.abs, * Math.sqrt,