forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

patchMyPreferences.ts11 lines, 348 bytesHistoryRawDownload
1import { client } from "./client";
2import type { User, UserLanguage, UserTheme } from "./types";
3
4export type PatchMyPreferencesBody = {
5 theme?: UserTheme;
6 language?: UserLanguage;
7};
8
9export function patchMyPreferences(body: PatchMyPreferencesBody): Promise<User> {
10 return client<User>("/users/me/preferences", { method: "PATCH", body });
11}