Closed as not planned
Description
⚙ Compilation target
ES2016
⚙ Library
ESNext
Missing / Incorrect Definition
Array.prototype.includes
and ReadonlyArray.prototype.includes
Sample Code
const candidates = ["foo", "bar"] as const;
const candidate: string = "baz";
// Argument of type '"string"' is not assignable to parameter of type '"foo" | "bar"'.
candidates.includes(candidate);
See #58988
Documentation Link
No response