mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-14 05:10:09 +08:00
[koa-session] ContextStore constructor takes an argument of type Koa.Context
This commit is contained in:
2
types/koa-session/index.d.ts
vendored
2
types/koa-session/index.d.ts
vendored
@@ -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