stc icon indicating copy to clipboard operation
stc copied to clipboard

Function params are not validated

Open awareness481 opened this issue 2 years ago • 0 comments

type A<T extends string> = T;
function fn(a: Uppercase<number>, b: A<number>) {}
// no errors reported

https://tsplay.dev/NnlPaW

It should report an error for each param. Not sure if params are not validated in all cases or some cases

awareness481 avatar Mar 14 '23 17:03 awareness481