Skip to content

[medium] Nested generic props corrupt the transformed TypeScript #9

Description

@gingercakedev-bot

Nested generic props corrupt the transformed TypeScript

Severity medium
Kind edge-case
Location src/parsers/vue/vue-parser.tstransformVueMacros
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-cliRaised by dev-cli automated scan

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions