1 | # Installation
|
2 | > `npm install --save @types/koa-logger`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for koa-logger (https://github.com/koajs/logger).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-logger.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-logger/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for koa-logger 3.1
|
12 | // Project: https://github.com/koajs/logger
|
13 | // Definitions by: Joshua DeVinney <https://github.com/geoffreak>
|
14 | // Tomek Łaziuk <https://github.com/tlaziuk>
|
15 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
16 | // TypeScript Version: 2.3
|
17 |
|
18 | import { Middleware } from 'koa';
|
19 |
|
20 | type Transporter = (
|
21 | str: string,
|
22 | args: [string, string, string, number | undefined, string | undefined, string | undefined],
|
23 | ) => void;
|
24 |
|
25 | interface TransporterOpts {
|
26 | transporter: Transporter;
|
27 | }
|
28 |
|
29 | declare function KoaLogger(opts?: Transporter | TransporterOpts): Middleware;
|
30 | declare namespace KoaLogger {}
|
31 | export = KoaLogger;
|
32 |
|
33 | ````
|
34 |
|
35 | ### Additional Details
|
36 | * Last updated: Tue, 28 Sep 2021 18:01:21 GMT
|
37 | * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)
|
38 | * Global values: none
|
39 |
|
40 | # Credits
|
41 | These definitions were written by [Joshua DeVinney](https://github.com/geoffreak), and [Tomek Łaziuk](https://github.com/tlaziuk).
|
42 |
|
\ | No newline at end of file |