feat: Add in the new types of the file and the value

This commit is contained in:
Blu-J
2023-07-28 14:03:29 -06:00
parent ba248eee28
commit 2d52b39409
3 changed files with 22 additions and 11 deletions

View File

@@ -4,10 +4,15 @@ import { Utils } from "../util/utils"
export type SetupExports<Store> = (opts: {
effects: Effects
utils: Utils<Store>
}) => {
ui: ExposeUiPaths<Store>
services: ExposeServicePaths<Store>
}
}) =>
| {
ui: ExposeUiPaths<Store>
services: ExposeServicePaths<Store>
}
| Promise<{
ui: ExposeUiPaths<Store>
services: ExposeServicePaths<Store>
}>
export const setupExports = <Store>(fn: (opts: SetupExports<Store>) => void) =>
fn