feat: Add in the setupExports

This commit is contained in:
Blu-J
2023-05-30 17:21:53 -06:00
parent bb35e676d3
commit 613bf74180
4 changed files with 40 additions and 12 deletions

13
lib/inits/setupExports.ts Normal file
View File

@@ -0,0 +1,13 @@
import { Effects, ExposeServicePaths, ExposeUiPaths } from "../types"
import { Utils } from "../util/utils"
export type SetupExports<Store> = (opts: {
effects: Effects
utils: Utils<Store>
}) => {
ui: ExposeUiPaths<Store>
services: ExposeServicePaths<Store>
}
export const setupExports = <Store>(fn: (opts: SetupExports<Store>) => void) =>
fn