This commit is contained in:
J H
2024-02-02 08:41:32 -07:00
parent e202b5640c
commit 7f3c189ec1
8 changed files with 44 additions and 34 deletions

View File

@@ -21,7 +21,7 @@ import { SDKManifest } from "../manifest/ManifestTypes"
export const setupMain = <Manifest extends SDKManifest, Store>(
fn: (o: {
effects: Effects
started(onTerm: () => void): null
started(onTerm: () => PromiseLike<void>): PromiseLike<void>
utils: Utils<Manifest, Store, {}>
}) => Promise<Daemons<Manifest, any>>,
): ExpectedExports.main => {
@@ -30,6 +30,6 @@ export const setupMain = <Manifest extends SDKManifest, Store>(
...options,
utils: createMainUtils<Manifest, Store>(options.effects),
})
await result.build().then((x) => x.wait())
return result
}
}