Skip to content

Commit

Permalink
nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Jun 21, 2019
1 parent 8efcf6b commit e3857a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/utils/types.ts
Expand Up @@ -110,7 +110,6 @@ export type Headers = Record<string, string | string[]>;
export interface Options extends Omit<https.RequestOptions, 'agent' | 'timeout' | 'host' | 'headers'> {
host?: string;
body?: string | Buffer | ReadableStream;
userData?: unknown;
hostname?: string;
path?: string;
socketPath?: string;
Expand Down Expand Up @@ -139,13 +138,11 @@ export interface Options extends Omit<https.RequestOptions, 'agent' | 'timeout'
dnsCache?: Map<string, string> | Keyv | false;
url?: URL | string;
searchParams?: Record<string, string | number | boolean | null> | URLSearchParams | string;
/*
Deprecated
*/
query?: Options['searchParams'];
query?: Options['searchParams']; // Deprecated
useElectronNet?: boolean;
form?: Record<string, any>;
json?: Record<string, any>;
userData?: unknown;
}

export interface NormalizedOptions extends Omit<Required<Options>, 'timeout' | 'dnsCache' | 'retry'> {
Expand Down

0 comments on commit e3857a3

Please sign in to comment.