mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 04:11:57 +00:00
feat: Add vault through utils + sdk
This commit is contained in:
@@ -23,17 +23,17 @@ import "./Daemons"
|
||||
* @param fn
|
||||
* @returns
|
||||
*/
|
||||
export const setupMain = <Store>(
|
||||
export const setupMain = <Store, Vault>(
|
||||
fn: (o: {
|
||||
effects: Effects
|
||||
started(onTerm: () => void): null
|
||||
utils: Utils<Store, {}>
|
||||
utils: Utils<Store, Vault, {}>
|
||||
}) => Promise<Daemons<any>>,
|
||||
): ExpectedExports.main => {
|
||||
return async (options) => {
|
||||
const result = await fn({
|
||||
...options,
|
||||
utils: createMainUtils<Store>(options.effects),
|
||||
utils: createMainUtils<Store, Vault>(options.effects),
|
||||
})
|
||||
await result.build().then((x) => x.wait())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user