This sounds like "wishful programming" without type safety (or needs writing types as libraries). The only place where I've seen this working well is in TypeScript and it has a massive community (and Microsoft) behind its back.
Currently I write backends in Rust and frontends in TypeScript and it works really, really well.