@types/koa-pino-logger
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -8,5 +8,5 @@ // Type definitions for koa-pino-logger 3.0 | ||
import { Middleware as BaseMiddleware } from 'koa'; | ||
import { DestinationStream, Logger } from 'pino'; | ||
import { Options } from 'pino-http'; | ||
import { Middleware as BaseMiddleware } from "koa"; | ||
import { DestinationStream, Logger } from "pino"; | ||
import { Options } from "pino-http"; | ||
@@ -21,7 +21,7 @@ export = logger; | ||
opts?: Options, | ||
stream?: DestinationStream | ||
stream?: DestinationStream, | ||
): Middleware; | ||
declare function logger(stream?: DestinationStream): Middleware; | ||
declare module 'koa' { | ||
declare module "koa" { | ||
interface ExtendableContext { | ||
@@ -28,0 +28,0 @@ log: Logger; |
{ | ||
"name": "@types/koa-pino-logger", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TypeScript definitions for koa-pino-logger", | ||
@@ -32,4 +32,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-pino-logger", | ||
}, | ||
"typesPublisherContentHash": "cb92202bbc896b6177bff60ac430aa056d7e5a6c18d567c7f6d40b55aaee1389", | ||
"typeScriptVersion": "3.7" | ||
"typesPublisherContentHash": "b4bfc754838852d376ba8ce2d1fa3fd0a6275acee657e36e2c73ad7be839e366", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -18,5 +18,5 @@ # Installation | ||
import { Middleware as BaseMiddleware } from 'koa'; | ||
import { DestinationStream, Logger } from 'pino'; | ||
import { Options } from 'pino-http'; | ||
import { Middleware as BaseMiddleware } from "koa"; | ||
import { DestinationStream, Logger } from "pino"; | ||
import { Options } from "pino-http"; | ||
@@ -31,7 +31,7 @@ export = logger; | ||
opts?: Options, | ||
stream?: DestinationStream | ||
stream?: DestinationStream, | ||
): Middleware; | ||
declare function logger(stream?: DestinationStream): Middleware; | ||
declare module 'koa' { | ||
declare module "koa" { | ||
interface ExtendableContext { | ||
@@ -45,3 +45,3 @@ log: Logger; | ||
### Additional Details | ||
* Last updated: Sat, 13 Nov 2021 16:31:25 GMT | ||
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT | ||
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [@types/pino](https://npmjs.com/package/@types/pino), [@types/pino-http](https://npmjs.com/package/@types/pino-http) | ||
@@ -48,0 +48,0 @@ * Global values: none |
4725