From a45650f75827526bec35f01e0b682d0f12efad5c Mon Sep 17 00:00:00 2001 From: SoraYama Date: Thu, 15 Feb 2018 01:54:46 +0800 Subject: [PATCH] remove redundant tags and fix the comment --- types/urllib/index.d.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/types/urllib/index.d.ts b/types/urllib/index.d.ts index 4a266cab59..296eacebdf 100644 --- a/types/urllib/index.d.ts +++ b/types/urllib/index.d.ts @@ -141,7 +141,7 @@ export function request(url: string | url.URL, options?: RequestOptions): Promis export function request(url: string | url.URL, callback: Callback): void; /** * @param url The URL to request, either a String or a Object that return by url.parse. - * @param options Optional, @see RequestOptions. + * @param options @see RequestOptions. * @param callback @see Callback */ export function request(url: string | url.URL, options: RequestOptions, callback: Callback): void; @@ -154,7 +154,7 @@ export function request(url: string | url.URL, options: RequestOptions, callback export function requestWithCallback(url: string | url.URL, callback: Callback): void; /** * @param url The URL to request, either a String or a Object that return by url.parse. - * @param options Optional, @see RequestOptions. + * @param options @see RequestOptions. * @param callback @see Callback */ export function requestWithCallback(url: string | url.URL, options: RequestOptions, callback: Callback): void; @@ -164,7 +164,7 @@ export function requestWithCallback(url: string | url.URL, options: RequestOptio * @param url The URL to request, either a String or a Object that return by url.parse. * @param options Optional, @see RequestOptions. */ -export function requestThunk(url: string | url.URL, options: RequestOptions): (callback: (...args: any[]) => void) => void; +export function requestThunk(url: string | url.URL, options?: RequestOptions): (callback: (...args: any[]) => void) => void; /** * alias to request. @@ -188,24 +188,21 @@ export function curl(url: string | url.URL, options?: RequestOptions): Promise