-
Notifications
You must be signed in to change notification settings - Fork 6
Optimize Large Type Definitions #9632
Copy link
Copy link
Open
Description
Reduce the size of type definitions in app/api/spotify/playlists/[playlistId]/tracks/route.ts (lines 25-31). Replace 50+ numeric literal union types with a const and typeof approach: const VALID_LIMITS = [1, 5, 10, 20, 30, 40, 50] as const; type SpotifyPagingParams = typeof VALID_LIMITS[number];. Estimated size saved: 2KB.
Priority: Low | Effort: Small
Reactions are currently unavailable
Metadata
Metadata
Assignees
Projects
Status
Todo