mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
19 lines
469 B
TypeScript
19 lines
469 B
TypeScript
import { Effects, ExposeServicePaths, ExposeUiPaths } from "../types"
|
|
import { Utils } from "../util/utils"
|
|
|
|
export type SetupExports<Store> = (opts: {
|
|
effects: Effects
|
|
utils: Utils<any, Store>
|
|
}) =>
|
|
| {
|
|
ui: ExposeUiPaths<Store>
|
|
services: ExposeServicePaths<Store>
|
|
}
|
|
| Promise<{
|
|
ui: ExposeUiPaths<Store>
|
|
services: ExposeServicePaths<Store>
|
|
}>
|
|
|
|
export const setupExports = <Store>(fn: (opts: SetupExports<Store>) => void) =>
|
|
fn
|