Skip to content

Commit e03206b

Browse files
jsdoc code examples & typings lint fix
1 parent df3f242 commit e03206b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

functions/mod.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* Utilities for working with functions.
66
*
77
* ```ts
8+
* import { pipe } from "@std/functions";
9+
* import { assertEquals } from "@std/assert";
10+
*
811
* const myPipe = pipe(
912
* Math.abs,
1013
* Math.sqrt,
@@ -16,5 +19,4 @@
1619
*
1720
* @module
1821
*/
19-
20-
export * from "./pipe.ts";
22+
export { pipe } from "./pipe.ts";

functions/pipe.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ type PipeArgs<F extends AnyFunc[], Acc extends AnyFunc[] = []> = F extends [
2424
*
2525
* @example Usage
2626
* ```ts
27+
* import { assertEquals } from "@std/assert";
28+
* import { pipe } from "@std/functions";
29+
*
2730
* const myPipe = pipe(
2831
* Math.abs,
2932
* Math.sqrt,

0 commit comments

Comments
 (0)