From 9c436febb0af344a26181e66fb83503363d735f3 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 25 Aug 2020 15:50:33 +0200 Subject: [PATCH] config: add missing methods to Config type --- packages/config/src/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/config/src/types.ts b/packages/config/src/types.ts index 3e46874c1d..840cc36173 100644 --- a/packages/config/src/types.ts +++ b/packages/config/src/types.ts @@ -30,10 +30,12 @@ export type AppConfig = { }; export type Config = { + has(key: string): boolean; + keys(): string[]; - get(key: string): JsonValue; - getOptional(key: string): JsonValue | undefined; + get(key?: string): JsonValue; + getOptional(key?: string): JsonValue | undefined; getConfig(key: string): Config; getOptionalConfig(key: string): Config | undefined;