From a9e39d38d3a2ff21cadd0bdd661202031161eee5 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Fri, 30 Oct 2020 17:17:52 +0000 Subject: [PATCH] Fix session.cookie TS definitions (#157) Fix cookie params TS defs --- index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.d.ts b/index.d.ts index 4650b2e6..ff764946 100644 --- a/index.d.ts +++ b/index.d.ts @@ -419,6 +419,13 @@ interface SessionConfigParams { */ absoluteDuration?: boolean | number; + /** + * Configuration parameters used for the session cookie and transient cookies. + */ + cookie?: CookieConfigParams; +} + +interface CookieConfigParams { /** * Domain name for the cookie. * Passed to the [Response cookie](https://expressjs.com/en/api.html#res.cookie) as `domain`