“Parameter implicitly has an 'any' type”
Në shqip: Gabimi „implicitly has an any type“
ShpjegimiSQ
Me noImplicitAny (pjesë e strict), çdo parametër pa tip që TS s'mund ta nxjerrë jep këtë gabim. Zgjidhja: shkruaj tipin — (e: MouseEvent) ose (n: number).
EnglishEN
With noImplicitAny (part of strict), every untyped parameter TS can't infer gives this error. The fix: write the type — (e: MouseEvent) or (n: number).
Si ta mendosh
Si një fushë bosh në formular që sistemi s'e pranon.
Lexoje në anglisht
Like an empty form field the system won't accept.
Shembull koditypescript
function dyfisho(n) { return n * 2; } // ✗
function dyfisho2(n: number) { return n * 2; } // ✓