From 1cd9e56f724e689731b472835d221244e0c2ca2c Mon Sep 17 00:00:00 2001 From: Li Jinyao Date: Sun, 15 Oct 2017 02:28:41 +0800 Subject: [PATCH] setCookieSync options is also optional --- types/tough-cookie/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/tough-cookie/index.d.ts b/types/tough-cookie/index.d.ts index 7aeb7b111f..ee431874dc 100644 --- a/types/tough-cookie/index.d.ts +++ b/types/tough-cookie/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for tough-cookie 2.3 // Project: https://github.com/salesforce/tough-cookie // Definitions by: Leonard Thieu +// LiJinyao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -159,7 +160,7 @@ export class CookieJar { setCookie(cookieOrString: Cookie | string, currentUrl: string, options: CookieJar.SetCookieOptions, cb: (err: Error | null, cookie: Cookie) => void): void; setCookie(cookieOrString: Cookie | string, currentUrl: string, cb: (err: Error, cookie: Cookie) => void): void; - setCookieSync(cookieOrString: Cookie | string, currentUrl: string, options: CookieJar.SetCookieOptions): void; + setCookieSync(cookieOrString: Cookie | string, currentUrl: string, options?: CookieJar.SetCookieOptions): void; getCookies(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: (err: Error | null, cookies: Cookie[]) => void): void; getCookies(currentUrl: string, cb: (err: Error | null, cookies: Cookie[]) => void): void;