kaleidawave / ezno

A fast and correct TypeScript type checker and compiler with additional experiments
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.55k stars 47 forks source link

Add constraint inference #197

Open kaleidawave opened 2 months ago

kaleidawave commented 2 months ago

Add parameter inference for passing as argument, getting a property from and calling

TODO more cases

Also not sure what to do here

function x(a, prop) {
    return a[prop]
}

x({ a: 1 }, "b")