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>;