Skip to content

Commit

Permalink
Fix session.cookie TS definitions (#157)
Browse files Browse the repository at this point in the history
Fix cookie params TS defs
  • Loading branch information
adamjmcgrath authored Oct 30, 2020
1 parent 1e805c7 commit a9e39d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit a9e39d3

Please sign in to comment.