From 2bb93e2cc3371e6d5a7e2bb39b112e52a7dfcd3f Mon Sep 17 00:00:00 2001 From: btxtiger Date: Mon, 23 Jul 2018 19:29:03 +0200 Subject: [PATCH] [cookie-session] Make props optional for usability with sharedSession (#27288) (#27304) --- types/cookie-session/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/cookie-session/index.d.ts b/types/cookie-session/index.d.ts index 001ba646d5..a0b7a2e6b0 100644 --- a/types/cookie-session/index.d.ts +++ b/types/cookie-session/index.d.ts @@ -78,17 +78,17 @@ declare namespace CookieSessionInterfaces { /** * Is true if the session has been changed during the request. */ - isChanged: boolean; + isChanged?: boolean; /** * Is true if the session is new. */ - isNew: boolean; + isNew?: boolean; /** * Determine if the session has been populated with data or is empty. */ - isPopulated: boolean; + isPopulated?: boolean; [propertyName: string]: any; } @@ -97,7 +97,7 @@ declare namespace CookieSessionInterfaces { /** * Represents the session for the given request. */ - session: CookieSessionObject; + session?: CookieSessionObject; /** * Represents the session options for the current request. These options are a shallow clone of what was provided at middleware construction and can be altered to change cookie setting behavior on a per-request basis.