79451517

Date: 2025-02-19 13:36:34
Score: 1
Natty:
Report link

Found a better way:

type Tuple = [unknown, ...unknown[]]

let foo = [{ foo: "foo" }, { bar: "bar" }] satisfies Tuple

Important to note is that you have to use satisfies which exists since TypeScript 4.9 and not as.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Makien Osman