From 0f9cfb309b928e7b91f1fc365936631f5ee884fd Mon Sep 17 00:00:00 2001 From: Moritz Raguschat Date: Sat, 24 Mar 2018 03:09:12 +0100 Subject: [PATCH] [koa-session] ContextStore constructor takes an argument of type Koa.Context --- types/koa-session/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/koa-session/index.d.ts b/types/koa-session/index.d.ts index 8650a07d91..2fe4a37b95 100644 --- a/types/koa-session/index.d.ts +++ b/types/koa-session/index.d.ts @@ -166,7 +166,7 @@ declare namespace session { * ContextStore must be a class which claims three instance methods demonstrated above. * new ContextStore(ctx) will be executed on every request. */ - ContextStore?: { new(): stores }; + ContextStore?: { new(ctx: Koa.Context): stores }; /** * If you want to add prefix for all external session id, you can use options.prefix, it will not work if options.genid present.