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

Problem
As per the FAQ, we can make things required by setting
default: null, ifnullis not a valid value.With TypeScript I get the error
Type instantiation is excessively deep and possibly infinitewhen trying toconfig.getany value, if somewhere in the schema there isdefault: 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 buildto see the following