npm.io
2.0.7 • Published 11 months ago

@types/koa-basic-auth

Licence
MIT
Version
2.0.7
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.