Add comment to serssionProps interface

This commit is contained in:
kerol2r20
2017-06-13 15:53:09 +08:00
committed by GitHub
parent 8bc37013d6
commit 48407866a1

View File

@@ -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;
}