Skip to content

Commit

Permalink
fix(typings): value of set method should support null type (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: mengzhijie <mengzhijie@kuaishou.com>
  • Loading branch information
jedmeng and mengzhijie committed Jun 12, 2020
1 parent f94ec2c commit a146191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -79,7 +79,7 @@ declare class EggCookies {
* @param opts Optional. The options for cookie's setting.
* @returns The current 'EggCookie' instance.
*/
set(name: string, value?: string, opts?: EggCookies.CookieSetOptions): this;
set(name: string, value?: string | null, opts?: EggCookies.CookieSetOptions): this;
}

export = EggCookies;

0 comments on commit a146191

Please sign in to comment.