invariant-packages icon indicating copy to clipboard operation
invariant-packages copied to clipboard

Packages for working with invariant(condition, message) assertions

Results 12 invariant-packages issues
Sort by recently updated
recently updated
newest added

*tl;dr* is that an `exports.process = { env: {} };` call is being made (likely from [here](https://github.com/apollographql/invariant-packages/blob/main/packages/ts-invariant/src/invariant.ts#L70)), which causes a `process.env` variable to appear as seen below. ![image](https://user-images.githubusercontent.com/6751787/113648661-cd84b880-9641-11eb-8355-0a1e30a175d4.png) This lead...

I might be missing something here, but I can't figure out why one would use `ts-invariant` over `invariant`. The README states: > TypeScript implementation of invariant(condition, message). and > This...