Make get/set generic

This commit is contained in:
Steven
2019-02-08 19:55:42 -05:00
committed by GitHub
parent ceb5d446bd
commit d4db884e8b
+2 -2
View File
@@ -167,8 +167,8 @@ declare namespace NPM {
Conf: ConfigStatic;
defs: ConfigDefs;
get(setting: string): string;
set(setting: string, value: string): void;
get<T>(setting: string): T;
set<T>(setting: string, value: T): void;
loadPrefix(cb: ErrorCallback): void;
loadCAFile(caFilePath: string, cb: ErrorCallback): void;