import * as Koa from 'koa';
import * as session from 'koa-session';

const app = new Koa();

app.use(session(app));

app.listen(3000);

import * as Koa from 'koa';
import session = require('koa-session');

const app = new Koa();

app.use(session(app));

app.listen(3000);

Modify the module style of koa-session
Modify the module style of koa-session