arthur-fontaine / agrume

Server-side functions in your frontend for any tool. Easy, customizable and type-safe. Made for frontend developers.
https://agrume.js.org
MIT License
9 stars 0 forks source link

New feature: configure global `getClient` #80

Open arthur-fontaine opened 2 months ago

arthur-fontaine commented 2 months ago

Currently, the getClient option is only available on locally createRoute. We should be able to configure this directly in the plugin option.

This feature is implying that the type of the client may not be correct anymore if used. So we need to let the user override the type.