Commit 7c4e684
authored
refactor: eliminate all any types and consolidate type definitions (#46)
* refactor: eliminate all any types and consolidate type definitions
- Remove 68 `any` occurrences across 15 files with proper TypeScript types
- Replace `Record<string, any>` with `Record<string, unknown>` for JSON
- Add type guards and narrowing for unsafe external data
- Promote @typescript-eslint/no-explicit-any from warn to error
- Consolidate duplicate types: PatternTrend, PatternCandidateBase, UsageLocation
- Make GoldenFile extend IntelligenceGoldenFile to eliminate field duplication
- Define PatternCandidateBase for shared pattern candidate fields
- Create UsageLocation base for ImportUsage and SymbolUsage
- All 234 tests passing, type-check clean, 0 lint errors
* fix pr comments
* feat: enhance AngularAnalyzer with new IndexChunk interface and refactor signal input/output handling
- Introduced IndexChunk interface for better type definition of chunk properties.
- Refactored signal input() and output() handling to improve clarity and type safety.
- Simplified logic for determining required properties in signal-based inputs and outputs.
- Updated type assertions to leverage the new IndexChunk interface for chunk processing.
* fix linting1 parent d28460c commit 7c4e684
File tree
21 files changed
+533
-250
lines changed- src
- analyzers
- angular
- generic
- core
- embeddings
- patterns
- storage
- tools
- types
- utils
21 files changed
+533
-250
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments