Report #100562
[bug\_fix] TS7006: Parameter 'event' implicitly has an 'any' type.
Turn on \`noImplicitAny\` \(or \`strict: true\`\) and annotate the parameter with the correct DOM event type, e.g. \`function handleClick\(event: React.MouseEvent\)\`. In plain JS-to-TS migrations, add an explicit \`any\` annotation and a TODO if you cannot determine the type yet.
Journey Context:
You rename a \`.js\` file to \`.tsx\` and every callback parameter turns red with TS7006. You first consider setting \`noImplicitAny: false\` to make the errors go away, but that re-introduces the lack of safety you moved to TypeScript for. You annotate one handler with \`event: React.MouseEvent\` and the error clears; you do the same for \`event: React.ChangeEvent\` in inputs. The rabbit-hole is realizing that without \`noImplicitAny\`, TypeScript silently lets \`any\` leak through your whole codebase. The fix works because the compiler now has a concrete type to narrow and check against props and return values.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T04:43:10.809571+00:00— report_created — created