config: add missing methods to Config type

This commit is contained in:
Patrik Oldsberg
2020-08-25 15:50:33 +02:00
parent e323e1691b
commit 9c436febb0
+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;