@types/koa-basic-auth
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

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 * as Koa from "koa";

declare function auth(opts: {
    name: string;
    pass: string;
}): Koa.Middleware;

export = auth;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/koa

Credits

These definitions were written by Tobias Wolff.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/koa-basic-auth

    Weekly Downloads

    13,362

    Version

    2.0.6

    License

    MIT

    Unpacked Size

    2.92 kB

    Total Files

    5

    Last publish

    Collaborators

    • types