You need to type a generic sorting function for report rows that works on any object with at least one numeric field. Which TypeScript constraint achieves this?
-
A
<T extends object>
-
B
<T extends Record<string, number>>
-
C
<T extends { [key: string]: unknown }>
-
D
<T extends { value: number }>