type-augmentation-example

Example projet to reproduce augmentation issue when importing external package as a library.

To reproduce, follow these exact steps:

  • Clone the repository
  • Open library folder and run npm i
  • Open library folder and run npm run build
  • Open main folder and run npm i (make sure to build library before doing this)
  • Open ./main/src/index.ts file
  • Compare with Typescript Playground

Important things to notice: