I want to use gts in my project.
It has the rule in tslint.json "no-any": true
. That rule totally forbids using any
keyword anywhere in the code. What's the common use case of dealing with it function can accept any type. I'm aware that I can override this rule. But I wonder how would someone handle the situation when e.g. function that executes sql accepts arguments of different types. Is there best practices to handle this case?
The only thing that comes in mind is to specify all primitives types via |
param: string| number| Date;
But what if I'm wrapping some external code e.g. mysql in my function that already accepts any[]
.