3 ms·
> I like JavaScript as it is, without types on every line of code. Types are inferred for the most part. Typically, you have to annotate less than a quarter to
by tomatsu 10y ago
> I like JavaScript as it is, without types on every line of code.
Types are inferred for the most part. Typically, you have to annotate less than a quarter to make your project fully typed. I have about 7-10 types per 100 lines in my current project and I do use "noImplicitAny" and "strictNullChecks".
Most of those types are for fields and function/method signatures. You probably might want to document those types either way. Type annotations are a lot nicer for this than JSDoc comments.