forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits

patchMyPreferences.ts11 lines, 351 bytesHistoryRawDownload
1import { client } from "../client";
2import type { User, UserLanguage, UserTheme } from "../client";
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}