mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-04 14:29:47 +00:00
chore: Update the config builder
This commit is contained in:
@@ -225,12 +225,11 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
|
|||||||
setupBackups<Manifest>(...args),
|
setupBackups<Manifest>(...args),
|
||||||
setupConfig: <
|
setupConfig: <
|
||||||
ConfigType extends
|
ConfigType extends
|
||||||
| Record<string, any>
|
| Config<any, Store, Vault>
|
||||||
| Config<any, any, any>
|
|
||||||
| Config<any, never, never>,
|
| Config<any, never, never>,
|
||||||
Type extends Record<string, any> = ExtractConfigType<ConfigType>,
|
Type extends Record<string, any> = ExtractConfigType<ConfigType>,
|
||||||
>(
|
>(
|
||||||
spec: Config<Type, Store, Vault> | Config<Type, never, never>,
|
spec: ConfigType,
|
||||||
write: Save<Store, Vault, Type, Manifest>,
|
write: Save<Store, Vault, Type, Manifest>,
|
||||||
read: Read<Store, Vault, Type>,
|
read: Read<Store, Vault, Type>,
|
||||||
) =>
|
) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user