AmericanAirlines / simple-env

An intuitive, strongly typed, and scalable way to retrieve environment variables.
https://www.npmjs.com/package/@americanairlines/simple-env
MIT License
11 stars 9 forks source link

Fix typescript error for Typescript 4.2.2 #25

Closed johnkahn closed 3 years ago

johnkahn commented 3 years ago

Pre-Requisites

Description of Changes

Fixed a typescript error for Typescript version 4.2.2

It seems that we had an error in our types that was hidden by a bug in version 4.1.x, they patched it in version 4.2.x which is why we started seeing it.

Made the compilation tests more readable when one fails and allows you to check for multiple errors in a file.

If a compilation test fails, it will now show the output from tsc.

You can now provide multiple Typescript error codes to make sure they are the only errors present.

image

Related Issues

Closes #24