Skip to content

[Backend] Fix LeaderboardEntry type not assignable to null in playground routesΒ #967

Description

@ayomideadeniran

πŸš€ Feature Overview

src/routes/playground/playground.routes.ts at line 40 has error TS2322: Type LeaderboardEntry is not assignable to type null. The leaderboard data return type is mismatched.

πŸ› οΈ Implementation Requirements

  • Fix the return type for the playground leaderboard endpoint
  • Ensure proper typing of leaderboard data
  • Remove @ts-nocheck from this file

πŸ”§ Technical Specifications

TypeScript, Express.js

βœ… Acceptance Criteria

  • playground.routes.ts compiles without errors
  • Playground leaderboard API returns data correctly

πŸŽ“ Difficulty Level

Beginner

⏱️ Timeline

ETA: 1 hour

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related issuesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions