chore: Fix some types

This commit is contained in:
BluJ
2023-04-11 13:36:40 -06:00
parent be2019fda1
commit 0e0d62f9c4
5 changed files with 10 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
import { RunningMainRet } from "./RunningMainRet";
import { Effects, ExpectedExports } from "../types";
import { Daemons } from "./Daemons";
export * as network from "./exportInterfaces";
export { LocalBinding } from "./LocalBinding";
export { LocalPort } from "./LocalPort";
@@ -25,10 +25,10 @@ export const runningMain: (
fn: (o: {
effects: Effects;
started(onTerm: () => void): null;
}) => Promise<RunningMainRet>
}) => Promise<Daemons<any>>
) => ExpectedExports.main = (fn) => {
return async (options) => {
const { daemon } = await fn(options);
daemon.wait();
/// TODO BLUJ
return null as any;
};
};