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

3.1.5 • Public • Published

Installation

npm install --save @types/koa-logger

Summary

This package contains type definitions for koa-logger (https://github.com/koajs/logger).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-logger.

index.d.ts

import { Middleware } from "koa";

type Transporter = (
    str: string,
    args: [string, string, string, number | undefined, string | undefined, string | undefined],
) => void;

interface TransporterOpts {
    transporter: Transporter;
}

declare function KoaLogger(opts?: Transporter | TransporterOpts): Middleware;
declare namespace KoaLogger {}
export = KoaLogger;

Additional Details

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

Credits

These definitions were written by Joshua DeVinney, and Tomek Łaziuk.

/@types/koa-logger/

    Package Sidebar

    Install

    npm i @types/koa-logger

    Weekly Downloads

    54,862

    Version

    3.1.5

    License

    MIT

    Unpacked Size

    3.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • types