hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits
| 1 | import { client } from "../client"; |
| 2 | import type { User, UserLanguage, UserTheme } from "../client"; |
| 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 | } |