79641578

Date: 2025-05-28 06:03:20
Score: 1
Natty:
Report link

The simplest fix is to use a type assertion to tell TypeScript, “I know this matches the type”:

const cursor: PaginationCursor<T> = { id: record.id } as PaginationCursor<T>;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stepanZ