Closed
Description
π Search Terms
satisfies, error, reporting, span, call, function
π Version & Regression Information
- This changed between versions 5.0 and 5.1
β― Playground Link
π» Code
const f = (s: { a: true }) => {}
// I would expect the error to span:
// a) "{}" (Ideal IMO)
// b) "{} satisfies unknown" (A little messier but not wrong- this was the 5.0 behavior)
// The error is instead reported only on "satisfies" despite {} satisfying unknown
f({} satisfies unknown)
π Actual behavior
(see example)
π Expected behavior
(see example)
Additional information about the issue
No response