mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[koa-session] ContextStore constructor takes an argument of type Koa.Context
This commit is contained in:
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user