mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
`koa-session` does not actually require this validator and will provide a default behavior if its not supplied.
see: cb6d2c8448/lib/context.js (L152-L167)
9 lines
135 B
TypeScript
9 lines
135 B
TypeScript
import * as Koa from 'koa';
|
|
import * as session from 'koa-session';
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(session(app));
|
|
|
|
app.listen(3000);
|