Skip to content

Instantly share code, notes, and snippets.

@disintegrator
Created September 24, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disintegrator/cc76a707c4673145167402654d5ec9bb to your computer and use it in GitHub Desktop.
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.
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