mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 20:24:47 +00:00
chore: simplify the type of of in the config
This commit is contained in:
@@ -13,7 +13,7 @@ export class Config<A extends ConfigSpec> extends IBuilder<A> {
|
|||||||
return Config.empty().withValue(key, value);
|
return Config.empty().withValue(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static of<B extends { [key: string]: Value<C> }, C extends ValueSpec>(spec: B) {
|
static of<B extends { [key: string]: Value<ValueSpec> }>(spec: B) {
|
||||||
// deno-lint-ignore no-explicit-any
|
// deno-lint-ignore no-explicit-any
|
||||||
const answer: { [K in keyof B]: BuilderExtract<B[K]> } = {} as any;
|
const answer: { [K in keyof B]: BuilderExtract<B[K]> } = {} as any;
|
||||||
for (const key in spec) {
|
for (const key in spec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user