If you want to adjust the strict typing settings in your tsconfig, there is an option available for that.
While it's a bank holiday morning on New Year's Day and I don't have the exact property name handy, a quick search reveals a similar property named noImplicitReturns
. This could be related to the property we're discussing, possibly noImplicitAny
, which is relevant in this context.
You have the choice to disable it so that warnings won't be triggered when types are not provided, or you can keep it enabled to utilize types effectively (I recommend this approach for better context within your codebase).
For example:
Error(resp: SomeType) { ... }
Success(resp: SomeOtherType) { ... }
Not recommended:
Error(resp) { ... }
Success(resp) { ... }
Avoid if possible:
Error(resp: any) { ... }
Success(resp: any) { ... }