Typescript
TypeScript compiler validation and type checking for TypeScript projects.
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-typescriptOverview
TypeScript compiler validation and type checking for TypeScript projects.
Hooks
This plugin provides validation hooks that run TypeScript compiler checks:
Stop & SubagentStop Hooks
Runs tsc --noEmit in all directories with a tsconfig.json file to validate TypeScript compilation without emitting files.
The hooks will:
- Discover all directories containing
tsconfig.json - Run
tsc --noEmitin each directory - Stop on the first failure with
--fail-fast - Exit with code 2 if any compilation errors are found
Usage
Install this plugin in your Claude Code configuration to automatically validate TypeScript compilation on Stop and SubagentStop events.
License
Licensed under MIT - see repository for details.
Skills
typescript-async-patterns
Use when typeScript async patterns including Promises, async/await, and async iterators with proper typing. Use when writing asynchronous TypeScript code.
typescript-type-system
Use when working with TypeScript's type system including strict mode, advanced types, generics, type guards, and compiler configuration.
typescript-utility-types
Use when typeScript utility types, mapped types, and advanced type manipulation. Use when creating flexible, type-safe TypeScript code.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with tsconfig.json -- npx tsc --noEmitSubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with tsconfig.json -- npx tsc --noEmit