import { client } from "./client"; import type { Course, CourseKind } from "./types"; export type PostCourseBody = { title: string; description?: string | null; kind?: CourseKind | null; term_id?: string | null; capacity?: number | null; }; export function postCourse(body: PostCourseBody): Promise { return client("/courses", { method: "POST", body }); }