3 ms·
Yes, 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 f
by petermasking 4y ago
Yes, 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.