Getting Rid of any and unknown
function pairs<T>(a: T, b: T): [T, T] {
return [a, b];
}
const c = pairs(1, "1");
// ^
// Argument of type 'string' is not assignable to parameter of type 'number'
function pairs<T>(a: T, b: T): [T, T] {
return [a, b];
}
const c = pairs(1, "1");
// ^
// Argument of type 'string' is not assignable to parameter of type 'number'