Code QuizAdvanced

satisfies With the Wrong Constraint

Using satisfies validates a value against a type, but only if you supply the right constraint.

Codetypescript
type RGB = [number, number, number];

const palette = {
  red: [255, 0, 0],
  green: [0, 255, 0],
  blue: [0, 0, 255],
} satisfies Record<string, string>;

const first = palette.red[0]; // want a number

What is the bug in this code?