General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
Shared TypeScript type definitions for Claude Code hooks.
Sign in to like and favorite skills
Shared TypeScript type definitions for Claude Code hooks.
Provides common interfaces used by:
@claude-hook-watcher/runtime - Hook execution runtime@claude-hook-watcher/authoring - Hook authoring toolkitinterface Hook { type: 'command'; command: string; matcher?: string; timeout?: number; }
interface HookSet { PreToolUse?: Hook[]; PostToolUse?: Hook[]; SessionStart?: Hook[]; // ... all event types }
interface HookInputBase { session_id: string; transcript_path: string; cwd: string; permission_mode: string; hook_event_name: string; }
import type { Hook, HookSet, HookInput } from '@claude-hook-watcher/types';
npm install npm run build
This package follows semantic versioning. Breaking changes to types require major version bump.