mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +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 constructor(
|
||||||
private readonly spec: {
|
private readonly spec: {
|
||||||
[K in keyof Type]:
|
[K in keyof Type]:
|
||||||
@@ -107,8 +111,8 @@ export class Config<Type extends Record<string, any>, Store, Vault> {
|
|||||||
string,
|
string,
|
||||||
Value<any, Store, Vault> | Value<any, never, never>
|
Value<any, Store, Vault> | Value<any, never, never>
|
||||||
>,
|
>,
|
||||||
Store,
|
Store = never,
|
||||||
Vault,
|
Vault = never,
|
||||||
>(spec: Spec) {
|
>(spec: Spec) {
|
||||||
const validatorObj = {} as {
|
const validatorObj = {} as {
|
||||||
[K in keyof Spec]: Parser<unknown, any>
|
[K in keyof Spec]: Parser<unknown, any>
|
||||||
|
|||||||
Reference in New Issue
Block a user