TypeScript Type Checker
TypeScript Type Checker hooks into post-tool-use events for Write and Edit operations on TypeScript files. After each edit, it runs tsc --noEmit on the project to verify type safety. Rather than running a full project check every time, it uses incremental compilation with tsbuildinfo cache for fast feedback. When type errors are found, it reports them with file locations and error messages so Claude can fix them immediately. This prevents the common problem of multiple edits building up cascading type errors.
Hook Code
Add this hook to your Claude Code settings or .claude/settings.json to activate.
Terminal Preview
About TypeScript Type Checker
Claude Code hooks let you run custom shell commands automatically in response to specific events during Claude's operation. TypeScript Type Checker is a Post-Tool hook at the Intermediate level that automates tasks at key moments in your development workflow, reducing manual steps and enforcing consistency across your team.
Related Hooks
Post-Edit Test Runner
Automatically run relevant tests after Claude edits source files to catch regressions immediately.
Auto-Format on Save
Automatically run Prettier on files after Claude writes or edits them to maintain consistent formatting.
Auto Changelog Appender
Automatically extract commit messages and append structured entries to CHANGELOG.md after each commit.