hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits
| 1 | import { client } from "./client"; |
| 2 | import type { User, UserLanguage, UserTheme } from "./types"; |
| 3 | |
| 4 | export type PatchMyPreferencesBody = { |
| 5 | theme?: UserTheme; |
| 6 | language?: UserLanguage; |
| 7 | }; |
| 8 | |
| 9 | export function patchMyPreferences(body: PatchMyPreferencesBody): Promise<User> { |
| 10 | return client<User>("/users/me/preferences", { method: "PATCH", body }); |
| 11 | } |