Nested generic props corrupt the transformed TypeScript
|
|
| Severity |
medium |
| Kind |
edge-case |
| Location |
src/parsers/vue/vue-parser.ts → transformVueMacros |
| Module |
src/parsers/vue |
| Finding ID |
f-8ec72f |
Failure scenario
The non-greedy generic capture on line 85 stops at the first > in defineProps<{ items: Array<string> }>(). It produces const __props: { items: Array<string = {} as any }>(), corrupting a common nested prop type before TypeScriptParser receives it.
Suggested test
Parse <script setup lang="ts">defineProps<{ items: Array<string> }>()</script> and assert the delegated source remains syntactically valid and retains the complete prop type.
How to work this issue
Open a Claude Code session in this repo and say
"work the dev-cli finding f-8ec72f in src/parsers/vue/vue-parser.ts".
If this is not a real defect, close the issue with the false-positive label — dev-cli
records the fingerprint and will never raise it again. Closing it without that label marks the
finding fixed instead.
Raised by dev-cli · repo codemap-cli · scan 2026-08-15T06-35-41 · fingerprint 8ec72f9f9250
Nested generic props corrupt the transformed TypeScript
mediumedge-casesrc/parsers/vue/vue-parser.ts→transformVueMacrossrc/parsers/vuef-8ec72fFailure scenario
The non-greedy generic capture on line 85 stops at the first
>indefineProps<{ items: Array<string> }>(). It producesconst __props: { items: Array<string = {} as any }>(), corrupting a common nested prop type before TypeScriptParser receives it.Suggested test
Parse
<script setup lang="ts">defineProps<{ items: Array<string> }>()</script>and assert the delegated source remains syntactically valid and retains the complete prop type.How to work this issue
Open a Claude Code session in this repo and say
"work the dev-cli finding
f-8ec72finsrc/parsers/vue/vue-parser.ts".If this is not a real defect, close the issue with the
false-positivelabel — dev-clirecords the fingerprint and will never raise it again. Closing it without that label marks the
finding fixed instead.
Raised by dev-cli · repo
codemap-cli· scan2026-08-15T06-35-41· fingerprint8ec72f9f9250