Merge pull request #4624 from andrewthauer/feat/config-get-generics-2

fix(config): ensure config type reflects get<T>
This commit is contained in:
Andrew Thauer
2021-02-21 15:36:58 -05:00
committed by GitHub
+2 -2
View File
@@ -34,8 +34,8 @@ export type Config = {
keys(): string[];
get(key?: string): JsonValue;
getOptional(key?: string): JsonValue | undefined;
get<T = JsonValue>(key?: string): T;
getOptional<T = JsonValue>(key?: string): T | undefined;
getConfig(key: string): Config;
getOptionalConfig(key: string): Config | undefined;