diff --git a/lib/mainFn/Daemons.ts b/lib/mainFn/Daemons.ts index 73c2d30..f8f0106 100644 --- a/lib/mainFn/Daemons.ts +++ b/lib/mainFn/Daemons.ts @@ -3,7 +3,6 @@ import { CheckResult } from "../health/checkFns"; import { Trigger } from "../health/trigger"; import { Effects, ValidIfNoStupidEscape } from "../types"; import { InterfaceReceipt } from "./interfaceReceipt"; -import { RunningMainRet } from "./RunningMainRet"; type Daemon< Ids extends string | never, Command extends string, @@ -54,10 +53,10 @@ export class Daemons { private constructor( readonly effects: Effects, readonly started: (onTerm: () => void) => null, - readonly daemons?: Daemon[] + readonly daemons?: Daemon[] ) {} - static with(config: { + static of(config: { effects: Effects; started: (onTerm: () => void) => null; interfaceReceipt: InterfaceReceipt; @@ -74,6 +73,6 @@ export class Daemons { } build() { - return todo(); + return todo(); } } diff --git a/lib/mainFn/RunningMainRet.ts b/lib/mainFn/RunningMainRet.ts deleted file mode 100644 index ef1fd25..0000000 --- a/lib/mainFn/RunningMainRet.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Daemon } from "../types"; -import { ReadyProof } from "./ReadyProof"; - -export type RunningMainRet = { - [ReadyProof]: never; - daemon: Daemon; -}; diff --git a/lib/mainFn/index.ts b/lib/mainFn/index.ts index 6322655..ee614bd 100644 --- a/lib/mainFn/index.ts +++ b/lib/mainFn/index.ts @@ -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 + }) => Promise> ) => ExpectedExports.main = (fn) => { return async (options) => { - const { daemon } = await fn(options); - daemon.wait(); + /// TODO BLUJ + return null as any; }; }; diff --git a/package-lock.json b/package-lock.json index a66ce2a..7408c43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.charlie11", + "version": "0.4.0-lib0.charlie12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "start-sdk", - "version": "0.4.0-lib0.charlie11", + "version": "0.4.0-lib0.charlie12", "license": "MIT", "dependencies": { "@iarna/toml": "^2.2.5", diff --git a/package.json b/package.json index 30c1f7b..085bad8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.charlie11", + "version": "0.4.0-lib0.charlie12", "description": "For making the patterns that are wanted in making services for the startOS.", "main": "./lib/index.js", "types": "./lib/index.d.ts",