Created
September 24, 2020 12:53
-
-
Save disintegrator/cc76a707c4673145167402654d5ec9bb to your computer and use it in GitHub Desktop.
An example TypeScript declaration file that demonstrates how to augment the type definitions of a third party library.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "pino"; | |
declare module "pino" { | |
interface LoggerOptions { | |
// @types/pino does not currently expose this option | |
nestedKey?: string; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment