refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-29 08:49:34 +08:00
parent 43a13f8d08
commit 96017c8fc6
21 changed files with 150 additions and 90 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ export const authApi = createApi({
}
}),
// 更新 device token
updateDeviceToken: builder.mutation<void, { device_token: string }>({
updateDeviceToken: builder.mutation<void, string>({
query: (device_token) => ({
url: "/token/device_token",
method: "PUT",