mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: quick fix on the config
This commit is contained in:
@@ -83,7 +83,11 @@ export const addNodesSpec = Config.of({ hostname: hostname, port: port });
|
||||
|
||||
```
|
||||
*/
|
||||
export class Config<Type extends Record<string, any>, Store, Vault> {
|
||||
export class Config<
|
||||
Type extends Record<string, any>,
|
||||
Store = never,
|
||||
Vault = never,
|
||||
> {
|
||||
private constructor(
|
||||
private readonly spec: {
|
||||
[K in keyof Type]:
|
||||
@@ -107,8 +111,8 @@ export class Config<Type extends Record<string, any>, Store, Vault> {
|
||||
string,
|
||||
Value<any, Store, Vault> | Value<any, never, never>
|
||||
>,
|
||||
Store,
|
||||
Vault,
|
||||
Store = never,
|
||||
Vault = never,
|
||||
>(spec: Spec) {
|
||||
const validatorObj = {} as {
|
||||
[K in keyof Spec]: Parser<unknown, any>
|
||||
|
||||
Reference in New Issue
Block a user