We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Partial
1 parent 39990b6 commit e8aa0b1Copy full SHA for e8aa0b1
src/Cookie.ts
@@ -50,7 +50,7 @@ class Cookie implements Cookie.CookieOptions {
50
* @param value The value of this cookie.
51
* @param options Cookie options.
52
*/
53
- public constructor(name: string, value: string, options?: Cookie.CookieOptions) {
+ public constructor(name: string, value: string, options?: Partial<Cookie.CookieOptions>) {
54
if (!Cookie.TOKEN.test(name))
55
throw new SyntaxError(`Cookie name "${name}" is not a valid "token" as per RFC 2616, Section 2.2.`);
56
if (!Cookie.COOKIE_OCTET.test(value))
0 commit comments