ConfigService#get
error 'Type instantiation is excessively deep and possibly infinite' when using any
#906
Labels
bug
Something isn't working
Is there an existing issue for this?
Current behavior
this might be related with #625
When we supply some interface that has some prop with
any
toConfigService
generics, we got thistsc
error:For instance:
Minimum reproduction code
https://gitlab.com/micalevisk/nestjs-config-issue-906
Steps to reproduce
read the
README
of the repro above.Expected behavior
build the code with no typing errors.
Package version
2.0.0
NestJS version
8.4.3
Node.js version
16.13.0
In which operating systems have you tested?
Other
typescript
version: 4.6.3 (the latest one)I believe this is related with this type alias:
config/lib/types/path-value.type.ts
Lines 12 to 16 in 9f6f214
The text was updated successfully, but these errors were encountered: