From cd459e7fc5114029d087f6034aadb06339608d44 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 1 Oct 2018 23:48:58 +0000 Subject: [PATCH] Spacing --- package.json | 2 +- typings/index.d.ts | 122 ++++++++++++++++++++++----------------------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/package.json b/package.json index 50c1bf1..3858ee5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-superfetch", - "version": "0.1.8", + "version": "0.1.9", "description": "A wrapper for node-fetch that makes it appear like superagent.", "main": "index.js", "typings": "typings/index.d.ts", diff --git a/typings/index.d.ts b/typings/index.d.ts index cae85a7..70e772a 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4,82 +4,82 @@ type KVObject = { [name: string]: string }; type RequestBody = null | string | Buffer | Blob | NodeJS.ReadableStream; interface RequestOptions { - url: string; - method?: string; - query?: KVObject; - headers?: KVObject; - body?: RequestBody; - redirects?: number; - agent?: Agent; + url: string; + method?: string; + query?: KVObject; + headers?: KVObject; + body?: RequestBody; + redirects?: number; + agent?: Agent; } type ResponseBody = object | string | Buffer; interface Response { - status: number; - statusText: string; - headers: KVObject; - url: string; - ok: boolean; - raw: Buffer; - text: string; - body: ResponseBody; + status: number; + statusText: string; + headers: KVObject; + url: string; + ok: boolean; + raw: Buffer; + text: string; + body: ResponseBody; } type StaticRequest = (url: string, options?: RequestOptions) => Request; declare class Request extends Promise { - public static acl: StaticRequest; - public static bind: StaticRequest; - public static checkout: StaticRequest; - public static connect: StaticRequest; - public static copy: StaticRequest; - public static delete: StaticRequest; - public static get: StaticRequest; - public static head: StaticRequest; - public static link: StaticRequest; - public static lock: StaticRequest; - // public static 'm-search': StaticRequest; - public static merge: StaticRequest; - public static mkactivity: StaticRequest; - public static mkcalendar: StaticRequest; - public static mkcol: StaticRequest; - public static move: StaticRequest; - public static notify: StaticRequest; - public static options: StaticRequest; - public static patch: StaticRequest; - public static post: StaticRequest; - public static propfind: StaticRequest; - public static proppatch: StaticRequest; - public static purge: StaticRequest; - public static put: StaticRequest; - public static rebind: StaticRequest; - public static report: StaticRequest; - public static search: StaticRequest; - public static source: StaticRequest; - public static subscribe: StaticRequest; - public static trace: StaticRequest; - public static unbind: StaticRequest; - public static unlink: StaticRequest; - public static unlock: StaticRequest; - public static unsubscribe: StaticRequest; + public static acl: StaticRequest; + public static bind: StaticRequest; + public static checkout: StaticRequest; + public static connect: StaticRequest; + public static copy: StaticRequest; + public static delete: StaticRequest; + public static get: StaticRequest; + public static head: StaticRequest; + public static link: StaticRequest; + public static lock: StaticRequest; + // public static 'm-search': StaticRequest; + public static merge: StaticRequest; + public static mkactivity: StaticRequest; + public static mkcalendar: StaticRequest; + public static mkcol: StaticRequest; + public static move: StaticRequest; + public static notify: StaticRequest; + public static options: StaticRequest; + public static patch: StaticRequest; + public static post: StaticRequest; + public static propfind: StaticRequest; + public static proppatch: StaticRequest; + public static purge: StaticRequest; + public static put: StaticRequest; + public static rebind: StaticRequest; + public static report: StaticRequest; + public static search: StaticRequest; + public static source: StaticRequest; + public static subscribe: StaticRequest; + public static trace: StaticRequest; + public static unbind: StaticRequest; + public static unlink: StaticRequest; + public static unlock: StaticRequest; + public static unsubscribe: StaticRequest; - constructor(options: RequestOptions); - public end(cb?: (err: Error, response?: ResponseBody) => void): Promise; + constructor(options: RequestOptions); + public end(cb?: (err: Error, response?: ResponseBody) => void): Promise; - public query(params: KVObject): this; - public query(name: string, value: string): this; + public query(params: KVObject): this; + public query(name: string, value: string): this; - public set(headers: KVObject): this; - public set(name: string, value: string): this; + public set(headers: KVObject): this; + public set(name: string, value: string): this; - public attach(data: KVObject): this; - public attach(name: string, value: string): this; + public attach(data: KVObject): this; + public attach(name: string, value: string): this; - public send(body: RequestBody, raw?: boolean): this; - public redirects(amount: number): this; - public agent(agent: Agent): this; + public send(body: RequestBody, raw?: boolean): this; + public redirects(amount: number): this; + public agent(agent: Agent): this; - protected _request(): Promise; + protected _request(): Promise; } export = Request;