diff --git a/types/koa-session/index.d.ts b/types/koa-session/index.d.ts index eca81e17e3..32692c625d 100644 --- a/types/koa-session/index.d.ts +++ b/types/koa-session/index.d.ts @@ -69,8 +69,19 @@ declare module 'koa' { declare namespace session { interface sessionProps { + /** + * Returns true if the session is new + */ isNew: boolean; + + /** + * Set cookie's maxAge + */ maxAge: number; + + /** + * Save this session no matter whether it is populated + */ save(): void; [propName: string]: any; }