mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #32918 from styfle/patch-14
Change npm so that config get/set uses `any` instead of `string`
This commit is contained in:
Vendored
+2
-2
@@ -167,8 +167,8 @@ declare namespace NPM {
|
||||
Conf: ConfigStatic;
|
||||
defs: ConfigDefs;
|
||||
|
||||
get(setting: string): string;
|
||||
set(setting: string, value: string): void;
|
||||
get(setting: string): any;
|
||||
set(setting: string, value: any): void;
|
||||
|
||||
loadPrefix(cb: ErrorCallback): void;
|
||||
loadCAFile(caFilePath: string, cb: ErrorCallback): void;
|
||||
|
||||
@@ -22,4 +22,6 @@ npm.load({}, function (er) {
|
||||
npm.on("log", function (message: string) {
|
||||
console.log(message);
|
||||
});
|
||||
|
||||
npm.config.set('audit', false);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user