From 07251c91a6a204279d0e8c035b0bef7ab98b49ce Mon Sep 17 00:00:00 2001 From: BluJ Date: Tue, 2 May 2023 10:45:05 -0600 Subject: [PATCH] chore: Add topConfig --- lib/config/builder/config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/config/builder/config.ts b/lib/config/builder/config.ts index 8e5278a..f4cfd3d 100644 --- a/lib/config/builder/config.ts +++ b/lib/config/builder/config.ts @@ -116,3 +116,8 @@ export class Config, WD, ConfigType> { } } } +export function topConfig() { + return >(spec: { + [K in keyof Type]: Value + }) => Config.of(spec) +}