Skip to content

Commit e8aa0b1

Browse files
committed
use Partial for cookie options in constructor
1 parent 39990b6 commit e8aa0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Cookie implements Cookie.CookieOptions {
5050
* @param value The value of this cookie.
5151
* @param options Cookie options.
5252
*/
53-
public constructor(name: string, value: string, options?: Cookie.CookieOptions) {
53+
public constructor(name: string, value: string, options?: Partial<Cookie.CookieOptions>) {
5454
if (!Cookie.TOKEN.test(name))
5555
throw new SyntaxError(`Cookie name "${name}" is not a valid "token" as per RFC 2616, Section 2.2.`);
5656
if (!Cookie.COOKIE_OCTET.test(value))

0 commit comments

Comments
 (0)