Merge pull request #2116 from spotify/rugvip/missin
config: add missing methods to Config type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user