5 ms·
I'd love if interfaces worked as in typescript. As long as the object signature matches the interface as parameter then you can use it.
by mx_02 3y ago
I'd love if interfaces worked as in typescript.
As long as the object signature matches the interface as parameter then you can use it.
- owlstuffing 3y agoCheck out project manifold, it’s a compiler plugin for Java. Among other amazing features it adds structural typing [1], which is essentially interfaces typescript interfaces. 1. https://github.com/manifold-systems/manifold/tree/master/manifold-deps-parent/manifold-ext#structural-interfaces-via-structural https://github.com/manifold-systems/manifold/tree/master/man...