4 ms·
So it's a similar set up to what I described, but you do some magic on the backend to do deep analysis and thus client generation for arbitrary functions?
by subradios 4y ago
So it's a similar set up to what I described, but you do some magic on the backend to do deep analysis and thus client generation for arbitrary functions?
- petermasking 4y agoYes, but without having to build a shared types library, and building API's yourselves. I think we don't use a lot of magic for this. By importing the server functions directly, the IDE (e.g. VSCode) handles the type checking for us. So that's an easy 'trick' to avoid the shared types. Because all imports are handled by Jitar (the repository service), it's fairly easy to replace the actual implementation with a remote implementation. For this we only need to extract the exported functions and their parameters. Some magic happens here.