Problem
As per the FAQ, we can make things required by setting default: null, if null is not a valid value.
With TypeScript I get the error Type instantiation is excessively deep and possibly infinite when trying to config.get any value, if somewhere in the schema there is default: null.
typescript 4.6.3
convict 6.2.1
@types/convict 6.1.1
(all versions latest at time of writing)
Repo here
https://github.com/noisyscanner/convict-issue
Run yarn build to see the following
