79453317

Date: 2025-02-20 04:09:22
Score: 0.5
Natty:
Report link

There are different, It just the same result on your code the Record is actually the same to the fellowing.

/**
 * Construct a type with a set of properties K of type T
 */
type Record<K extends keyof any, T> = {
    [P in K]: T;
};

It may work different when using with generic.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hao-Jung Hsieh