forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postEvent.ts14 lines, 393 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Event, EventAudience } from "../client";
3
4export type PostEventBody = {
5 title: string;
6 description?: string | null;
7 audience?: EventAudience | null;
8 starts_at?: number | null;
9 ends_at?: number | null;
10};
11
12export function postEvent(body: PostEventBody): Promise<Event> {
13 return client<Event>("/events", { method: "POST", body });
14}