DefinitelyTyped/koa-basic-auth/koa-basic-auth-tests.ts
Tobias4872 07ab890c05 adding koa-basic-auth declarations and tests (#13569)
* adding koa-basic-auth declarations and tests

* adding noImplicitThis option

* fixing return type

* changes based on feedback from Andy
2016-12-27 16:11:09 -05:00

9 lines
156 B
TypeScript

import * as Koa from "koa";
import auth = require("koa-basic-auth");
const app = new Koa();
app.use(auth({name: "test", pass: "test"}));
app.listen(80);