mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
feat: Add configRead/save
This commit is contained in:
@@ -239,6 +239,22 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
|
|||||||
write,
|
write,
|
||||||
read,
|
read,
|
||||||
),
|
),
|
||||||
|
setupConfigRead: <
|
||||||
|
ConfigSpec extends
|
||||||
|
| Config<Record<string, any>, any, any>
|
||||||
|
| Config<Record<string, never>, never, never>,
|
||||||
|
>(
|
||||||
|
_configSpec: ConfigSpec,
|
||||||
|
fn: Read<Store, Vault, ConfigSpec>,
|
||||||
|
) => fn,
|
||||||
|
setupConfigSave: <
|
||||||
|
ConfigSpec extends
|
||||||
|
| Config<Record<string, any>, any, any>
|
||||||
|
| Config<Record<string, never>, never, never>,
|
||||||
|
>(
|
||||||
|
_configSpec: ConfigSpec,
|
||||||
|
fn: Save<Store, Vault, ConfigSpec, Manifest>,
|
||||||
|
) => fn,
|
||||||
setupInit: (
|
setupInit: (
|
||||||
migrations: Migrations<Store, Vault>,
|
migrations: Migrations<Store, Vault>,
|
||||||
install: Install<Store, Vault>,
|
install: Install<Store, Vault>,
|
||||||
|
|||||||
Reference in New Issue
Block a user