adjusting names

This commit is contained in:
Geoffrey Plitt 2023-11-21 14:37:38 -08:00
parent dde8e34474
commit 30e999960f
1 changed files with 4 additions and 4 deletions

8
types.d.ts vendored
View File

@ -1,4 +1,4 @@
export = request; export = root__request;
import caseless = require("caseless"); import caseless = require("caseless");
import stream = require("stream"); import stream = require("stream");
@ -10,9 +10,9 @@ import net = require("net");
import tough = require("tough-cookie"); import tough = require("tough-cookie");
import { Url } from "url"; import { Url } from "url";
declare function request(opts: any, ...args: any[]): any; declare function root__request(opts: any, ...args: any[]): any;
declare namespace request { declare namespace root__request {
interface RequestAPI<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions> { interface RequestAPI<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions> {
defaults(options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>; defaults(options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>;
defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>; defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>;
@ -392,4 +392,4 @@ declare namespace request {
} }
} }
declare var request: request.RequestAPI<request.Request, request.CoreOptions, request.RequiredUriUrl>; declare var request: root__request.RequestAPI<root__request.Request, root__request.CoreOptions, root__request.RequiredUriUrl>;