Installation
npm install --save @types/koa-basic-auth
Summary
This package contains type definitions for koa-basic-auth (https://github.com/koajs/basic-auth).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-basic-auth.
index.d.ts
import Koa = require("koa");
declare function auth(opts: {
name: string;
pass: string;
}): Koa.Middleware;
export = auth;
Additional Details
- Last updated: Fri, 24 Oct 2025 0441 GMT
- Dependencies: @types/koa
Credits
These definitions were written by Tobias Wolff.