Issue
I'm working on a big project with JS and TS files and sometimes there are no types on Typescript functions.
Since we want to use typescript to type things I would like to have a way to make function parameters mandatory with typescript CLI or ESLint, is this possible ?
Did not find anything on it.
Solution
TSConfig option noImplicitAny will ensure that parameters are specified and not assumed to be any.
noImplicitReturns will also help for return types.
Answered By - Dave Meehan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.