mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Add in more types for the config to be never
This commit is contained in:
@@ -142,7 +142,7 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
|
||||
fn: Save<Store, Vault, ConfigSpec, Manifest>,
|
||||
) => fn,
|
||||
setupDependencyConfig: <Input extends Record<string, any>>(
|
||||
config: Config<Input, Store, Vault>,
|
||||
config: Config<Input, Store, Vault> | Config<Input, never, never>,
|
||||
autoConfigs: {
|
||||
[K in keyof Manifest["dependencies"]]: DependencyConfig<
|
||||
Store,
|
||||
@@ -221,8 +221,12 @@ export class StartSdk<Manifest extends SDKManifest, Store, Vault> {
|
||||
remoteConfig,
|
||||
dependencyConfig,
|
||||
}: {
|
||||
localConfig: Config<LocalConfig, Store, Vault>
|
||||
remoteConfig: Config<RemoteConfig, any, any>
|
||||
localConfig:
|
||||
| Config<LocalConfig, Store, Vault>
|
||||
| Config<LocalConfig, never, never>
|
||||
remoteConfig:
|
||||
| Config<RemoteConfig, any, any>
|
||||
| Config<RemoteConfig, never, never>
|
||||
dependencyConfig: (options: {
|
||||
effects: Effects
|
||||
localConfig: LocalConfig
|
||||
|
||||
@@ -9,7 +9,7 @@ export function setupDependencyConfig<
|
||||
Input extends Record<string, any>,
|
||||
Manifest extends SDKManifest,
|
||||
>(
|
||||
_config: Config<Input, Store, Vault>,
|
||||
_config: Config<Input, Store, Vault> | Config<Input, never, never>,
|
||||
autoConfigs: {
|
||||
[key in keyof Manifest["dependencies"] & string]: DependencyConfig<
|
||||
Store,
|
||||
|
||||
Reference in New Issue
Block a user