Merge pull request #2116 from spotify/rugvip/missin

config: add missing methods to Config type
This commit is contained in:
Patrik Oldsberg
2020-08-25 16:49:19 +02:00
committed by GitHub
+4 -2
View File
@@ -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;