refactor(frontend): convert variants and projects to TypeScript

What does this MR do and why?

Convert the variants and projects helper modules and their unit specs to TypeScript as part of the frontend TypeScript migration (&33).

This is the first of two merge requests for #925 (closed):

  • MR 1 (this MR): Converts variants.ts and projects.ts along with their specs, exporting Variant and IssueReference types.
  • MR 2: Converts IssuesPage.vue, platformIssues.ts, and their test suites.

Behaviour changes

None.

Related to #925 (closed)

Validation steps

  • Verify TypeScript compilation and lint rules in CI pipeline.
  • Verify unit tests pass in variants.spec.ts and projects.spec.ts.

Implemented with AI assistance; I reviewed and tested the changes.

Edited by Abdelrahman Megahed

Merge request reports

Loading
Loading