79735087

Date: 2025-08-14 07:33:53
Score: 1.5
Natty:
Report link

https://tsplay.dev/wQaeYw

function test<T extends string>(arr: T[], callback: (get: (key: T) => string) => void): Promise<void> {
    return Promise.resolve();
}

test(['a', 'b', 'c'], (get) => {
  get('a'); //works
  get('d'); // compiler failure
});
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandroppolus