Repository navigation
Commit 6c74ba4
fix(hook): use HookResult type for catch return to fix type errors (#80)
The .catch() handlers on PostToolUse runHooks calls returned
{ action: "pass" } without message property, causing TS2339 when
accessing .message on the union type. Using HookResult as the return
type resolves this since it includes message?: string.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent b01ee2b commit 6c74ba4
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
0 commit comments