Bug Report
I'm not sure if this is intended behavior. If this is not a bug, I'd suggest supporting this as a feature.
π Search Terms
const, args, generic args, extends
π Version & Regression Information
v5.0.0
β― Playground Link
Playground link with relevant code
π» Code
declare function fn<const T extends any[]>(...args: T): T;
const a = fn("a", false);
π Actual behavior
The return type is any[]
π Expected behavior
The return type should be ["a", false]