Update index.d.ts

Updating Cookie options to follow Express documentation https://expressjs.com/en/api.html#res.cookie

Two properties `encode` and `sameSite` were missing
This commit is contained in:
Tomino
2017-03-15 10:15:35 +00:00
committed by GitHub
parent 1f6914b860
commit 767724dd08
+2
View File
@@ -161,6 +161,8 @@ interface CookieOptions {
path?: string;
domain?: string;
secure?: boolean | 'auto';
encode?: (val: string) => void;
sameSite?: boolean | string;
}
interface Errback { (err: Error): void; }