Is there any opportunity to set advanced type checking to see an error in next example:
type Id = number;
const id: Id = 1;
const notId: number = 2;
function test(val: Id) {
console.log('val', val);
}
test(id)
test(notId)
Is there any opportunity to set advanced type checking to see an error in next example:
type Id = number;
const id: Id = 1;
const notId: number = 2;
function test(val: Id) {
console.log('val', val);
}
test(id)
test(notId)