* Enforces explicit type imports * Upgrades typescript-eslint * Upgrades eslint related dependencies * Update config * Sync packages mismatches * Syncs prettier version * Linting * Relocks node version * Fixes * Locks @vitejs/plugin-react to 1.3.2 * Linting
11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import * as fetch from "@lib/core/http/fetch-wrapper";
|
|
import type { BookingCreateBody, BookingResponse } from "@lib/types/booking";
|
|
|
|
const createBooking = async (data: BookingCreateBody) => {
|
|
const response = await fetch.post<BookingCreateBody, BookingResponse>("/api/book/event", data);
|
|
|
|
return response;
|
|
};
|
|
|
|
export default createBooking;
|