mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-02 05:23:21 +00:00
feat: Add in the setupExports
This commit is contained in:
13
lib/inits/setupExports.ts
Normal file
13
lib/inits/setupExports.ts
Normal 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
|
||||
Reference in New Issue
Block a user