mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Widened 'koa'.Context.session type3 in order to enable strict null checks inb the compiler (#20341)
This commit is contained in:
committed by
Wesley Wigham
parent
b4f36d8b46
commit
16cec459b7
2
types/koa-session/index.d.ts
vendored
2
types/koa-session/index.d.ts
vendored
@@ -108,7 +108,7 @@ declare function session(app: Koa): Koa.Middleware;
|
||||
|
||||
declare module 'koa' {
|
||||
interface Context {
|
||||
session: session.sessionProps;
|
||||
session: session.sessionProps | null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user