Skip to content

Commit

Permalink
Split async data types into separate modules (#135)
Browse files Browse the repository at this point in the history
Isolate async data types into their own modules. Create a top-level `async` module to aggregate the exports.
  • Loading branch information
jmartinezmaes authored Jan 31, 2024
1 parent a80d231 commit 350ad1c
Show file tree
Hide file tree
Showing 24 changed files with 3,963 additions and 3,545 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
"exports": {
"./_*": null,
"./annotation.js": "./dist/annotation.js",
"./async.js": "./dist/async.js",
"./async/annotation.js": "./dist/async/annotation.js",
"./async/either.js": "./dist/async/either.js",
"./async/ior.js": "./dist/async/ior.js",
"./async/maybe.js": "./dist/async/maybe.js",
"./async/validation.js": "./dist/async/validation.js",
"./builder.js": "./dist/builder.js",
"./cmb.js": "./dist/cmb.js",
"./cmp.js": "./dist/cmp.js",
Expand Down
4 changes: 0 additions & 4 deletions src/_test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import { Semigroup, cmb } from "../cmb.js";
import { Eq, Ord, Ordering, eq, le } from "../cmp.js";
import type { Builder } from "../builder.js";

export function delay(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}

export class Num implements Ord<Num> {
constructor(readonly val: number) {}

Expand Down
Loading

0 comments on commit 350ad1c

Please sign in to comment.