Commit cc67dd8
committed
Reuse PrioritizedRouteEntry as the Trie entry constraint
`Trie` declared its own `TrieEntry` interface with the same four
fields (`index`, `initialLiteralPrefix`, `literalLength`,
`variableCount`) as `PrioritizedRouteEntry` from *./priority.ts*. The
duplicate would drift if the priority schema gained a field, since
trie callers and priority helpers are already constrained together.
Drop the local interface and tighten the class generic to
`PrioritizedRouteEntry` so the trie and the ordering helpers share a
single source of truth.
Reported by CodeRabbit in
#758 (2026-05-11).
Assisted-by: Claude Opus 4.7 (1M context)1 parent 996a371 commit cc67dd8
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
13 | 7 | | |
14 | | - | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
0 commit comments