fix(config): ensure config type reflects get<T>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user