From 8cbbfe0bc8731b2611322fc57b06f60106bf39d9 Mon Sep 17 00:00:00 2001 From: Wang Zishi Date: Tue, 15 Dec 2015 09:24:48 +0800 Subject: [PATCH] update definitions --- cookies/cookies.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookies/cookies.d.ts b/cookies/cookies.d.ts index 24984f7fd..53de9fe09 100644 --- a/cookies/cookies.d.ts +++ b/cookies/cookies.d.ts @@ -20,7 +20,7 @@ declare module "cookies" { * Cookie header in the request. If such a cookie exists, * its value is returned. Otherwise, nothing is returned. */ - get(name: string, opts?: IOptions): string; + get(name: string, opts: IOptions): string; /** * This sets the given cookie in the response and returns @@ -33,7 +33,7 @@ declare module "cookies" { * the current context to allow chaining.If the value is omitted, * an outbound header with an expired date is used to delete the cookie. */ - set(name: string, value: string, opts?: IOptions): ICookies; + set(name: string, value: string, opts: IOptions): ICookies; } interface IOptions {