hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 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 | // Accent color: "#rrggbb" to set, "" to clear back to null, omit to keep. |
| 8 | palette_color?: string; |
| 9 | }; |
| 10 | |
| 11 | export function patchMyPreferences(body: PatchMyPreferencesBody): Promise<User> { |
| 12 | return client<User>("/users/me/preferences", { method: "PATCH", body }); |
| 13 | } |