Summary
Improve type safety in public.ts by removing remaining usages of any and replacing them with proper Fastify, TypeScript, and application-specific types.
Contexts
The public routes currently contain several usages of any that bypass TypeScript's type checking and reduce maintainability.
Examples include:
(request.query as any).format
(request.query as any).size
Some of these usages are related to query parameter handling, response mapping, and route typing. Existing Fastify and application-specific types should be reused where available instead of introducing duplicate definitions.
Removing these usages will improve maintainability, reduce unsafe casts, and make future refactoring easier.
Tasks
Acceptance Criteria
Area
backend
Difficulty
Good First Issue
Summary
Improve type safety in
public.tsby removing remaining usages ofanyand replacing them with proper Fastify, TypeScript, and application-specific types.Contexts
The public routes currently contain several usages of
anythat bypass TypeScript's type checking and reduce maintainability.Examples include:
Some of these usages are related to query parameter handling, response mapping, and route typing. Existing Fastify and application-specific types should be reused where available instead of introducing duplicate definitions.
Removing these usages will improve maintainability, reduce unsafe casts, and make future refactoring easier.
Tasks
anyusages inpublic.ts(request.query as any)with properly typed query parameters(cl: any)with appropriate typesAcceptance Criteria
anyusages remain inpublic.tsArea
backendDifficulty
Good First Issue