import { client } from "./client"; import type { User, UserLanguage, UserTheme } from "./types"; export type PatchMyPreferencesBody = { theme?: UserTheme; language?: UserLanguage; }; export function patchMyPreferences(body: PatchMyPreferencesBody): Promise { return client("/users/me/preferences", { method: "PATCH", body }); }