Closed frangeris closed 1 week ago
Example:
export enum Api { testById = "/test/:id", otherById = "/test/:id/other", } init("https://api.test.io/d", { ...Api }); const main = async () => { const { testById, otherById } = useRequests<typeof Api>(); await testById.get({ params: {} }); await otherById.get({ params: {} }); // no error here }; main();
Example: