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.