DefinitelyTyped/koa-basic-auth/index.d.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

17 lines
353 B
TypeScript

// Type definitions for koa-basic-auth 2.x
// Project: https://github.com/koajs/basic-auth
// Definitions by: Tobias Wolff <https://github.com/Tobias4872/>
// Definitions: https://github.com/Tobias4872/DefinitelyTyped
import * as Koa from "koa";
declare function auth(opts: {
name: string;
pass: string;
}): Koa.Middleware;
export = auth;