mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
15 lines
454 B
TypeScript
15 lines
454 B
TypeScript
import { Effects, ExposeServicePaths, ExposeUiPaths } from "../types"
|
|
|
|
export type SetupExports<Store> = (opts: { effects: Effects }) =>
|
|
| {
|
|
ui: { [k: string]: ExposeUiPaths<Store> }
|
|
services: ExposeServicePaths<Store>["paths"]
|
|
}
|
|
| Promise<{
|
|
ui: { [k: string]: ExposeUiPaths<Store> }
|
|
services: ExposeServicePaths<Store>["paths"]
|
|
}>
|
|
|
|
export const setupExports = <Store>(fn: (opts: SetupExports<Store>) => void) =>
|
|
fn
|