-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Arthur Refslund edited this page Sep 20, 2022
·
4 revisions
Provides type-safety between front- and backend, but more importantly — creates a structure for ease of APIs in your project.
- Body and query is typed seemlessly in both frontend, and endpoints
- Queries are easier to use with querySpread which supports objects as query parameters
- Endpoint routes are automatically typed
- The returned content of endpoints are typed
- Supports slugged routes*
- Can be used in the page
Load
function - You can type-define variables with endpoint responses
Inspired by svelte-zero-api by ymzuiku.
Installation: Get Started Firstly recommended: Backend Usage: Frontend