repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
35d4d7e
parent
a4e1819
author
Eric Bower
date
2024-01-06 03:22:40 +0000 UTC
chore(query): cleanup mdw.predicate
1 files changed,  +1, -8
M query/mdw.ts
+1, -8
 1@@ -13,7 +13,7 @@ import type {
 2 import { mergeRequest } from "./util.ts";
 3 import * as fetchMdw from "./fetch.ts";
 4 import { log } from "../log.ts";
 5-import { call, Operation } from "../deps.ts";
 6+import { call, Callable } from "../deps.ts";
 7 export * from "./fetch.ts";
 8 
 9 /**
10@@ -142,13 +142,6 @@ export function fetch<CurCtx extends FetchJsonCtx = FetchJsonCtx>(
11   ]);
12 }
13 
14-type Callable<T> =
15-  | (() => Operation<T>)
16-  | (() => Promise<T>)
17-  | (() => T)
18-  | Operation<T>
19-  | Promise<T>;
20-
21 /**
22  * This middleware will only be activated if predicate is true.
23  */