mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-24 05:47:44 +08:00
Add comment to serssionProps interface
This commit is contained in:
11
types/koa-session/index.d.ts
vendored
11
types/koa-session/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user