File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ # Check
2+
3+ Analyze the current implementation or text to determine if its state is optimal.
Original file line number Diff line number Diff line change 1+ ---
2+ description : ' Fix Any types in TypeScript code'
3+ ---
4+
5+ # Fix Any Types
6+
7+ Find and replace ` as any ` type assertions with proper TypeScript types.
8+
9+ ## Context
10+
11+ - TypeScript Errors: !` bun tsgo --noEmit `
12+
13+ ## Steps
14+
15+ 1 . Search codebase for ` as any ` usage
16+ 2 . Analyze context and determine correct type
17+ 3 . Replace with specific type annotations
18+ 4 . Verify with ` bun tsgo --noEmit `
19+
20+ ## Common Patterns
21+
22+ - Event handlers: ` as React.MouseEvent<HTMLButtonElement> `
23+ - API responses: Define interface or use existing types
24+ - Third-party libraries: Import proper types or create type declarations
25+ - DOM elements: Use specific HTMLElement types
26+
27+ ## Validation
28+
29+ Run TypeScript check after changes:
30+ ``` bash
31+ bun tsgo --noEmit
32+ ```
Original file line number Diff line number Diff line change 1+ ---
2+ description : Fix bugs in the codebase
3+ ---
4+
5+ # Fix bugs
6+
7+ Fix all errors by calling appropriate Subagents to modify files. Repeat command execution until all problems are resolved.
8+
9+ ## Context
10+
11+ - TypeScript Errors: !` bun tsgo --noEmit `
12+ - Biome Errors: !` bun biome check . --fix --unsafe `
13+ - Bun Test Errors: !` bun test `
You can’t perform that action at this time.
0 commit comments