So, I want to have some posibility to provide type assistance, when I have some function calls like in example below. I want to check if first and second argument has same value.
myfn(12333, 12333); // To be OK
myfn(12333, 222); // To FAIL
myfn({
val_1: 12333,
val_2: 12333,
}); // To be OK
myfn({
val_1: 12333,
val_2: 222,
}); // To FAIL
For some small amount of values, ("error", "warning", ...etc), I can make an override, but for numbers it's makes no sense.