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

3.0.4 • Public • Published

Installation

npm install --save @types/koa-pino-logger

Summary

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

Details

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

index.d.ts

import { Middleware as BaseMiddleware } from "koa";
import { DestinationStream, Logger } from "pino";
import { Options } from "pino-http";

export = logger;

interface Middleware extends BaseMiddleware {
    logger: Logger;
}

declare function logger(
    opts?: Options,
    stream?: DestinationStream,
): Middleware;
declare function logger(stream?: DestinationStream): Middleware;

declare module "koa" {
    interface ExtendableContext {
        log: Logger;
    }
}

Additional Details

Credits

These definitions were written by Cameron Yan, and Jeremy Hull.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koa-pino-logger

Weekly Downloads

7,571

Version

3.0.4

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types