Skip to content

discovery(frontend): 3 Vue components use Options API without TypeScript — missing .vue.d.ts stubs cause TS7016 #4534

@mrveiss

Description

@mrveiss

Discovery

During #4323 (barrel index files), `SystemKnowledgeManager.vue` triggered TS7016 (`Could not find declaration file`) because it uses a plain `<script>` Options API block without `lang="ts"`. A `.vue.d.ts` stub was added as a workaround.

Three additional components have the same issue but lack the stub:

Component Path
`CommandPermissionDialog.vue` `src/components/ui/CommandPermissionDialog.vue` line 129
`ManPageManager.vue` `src/components/manpage/ManPageManager.vue` line 318
`TerminalWindow.vue` `src/components/terminal/TerminalWindow.vue` line 283

Risk

When any of these components is imported via a barrel `index.ts`, or referenced from a `lang="ts"` component, `vue-tsc` reports TS7016. This silently blocks barrel file creation for these directories.

Acceptance Criteria

  • Each of the 3 components either:
    • Migrated to `<script setup lang="ts">` (preferred), OR
    • Gets a `.vue.d.ts` stub file matching the `SystemKnowledgeManager.vue.d.ts` pattern
  • `vue-tsc --noEmit -p tsconfig.app.json` reports no TS7016 errors for these components
  • Barrel `index.ts` files for `ui/`, `manpage/`, `terminal/` can export these components without type errors

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions