Skip to content

refactor(Scans): replace task inputs any with ScanInputs type #1400#1986

Open
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1400
Open

refactor(Scans): replace task inputs any with ScanInputs type #1400#1986
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1400

Conversation

@NaitikVerma6776

Copy link
Copy Markdown
Contributor

Summary

  • Introduces a shared ScanInputs type (Record<string, unknown>) in api.ts.
  • Replaces inputs?: any in Scans.tsx with inputs?: ScanInputs.
  • Applies ScanInputs consistently to startTask and WorkflowStep for aligned API typings.

Closes #1400

Test plan

  • npm run typecheck (frontend)
  • npm run test -- testing/unit/pages/Scans.test.tsx testing/unit/pages/ScansToastErrors.test.tsx testing/unit/pages/ScansPhases.test.tsx testing/unit/pages/Scans.polling.test.tsx (28/28 passed)
  • Rescan flow remains unchanged at runtime

Introduce a shared ScanInputs model in api.ts and use it for Scans task
inputs and startTask payloads so rescan stays type-safe.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TYPESCRIPT] Replace Scans task inputs any with a typed scan input model

1 participant