1nwf / Produx-v2

Detected usage of the any type JS-0323
Anti-pattern
Critical
7 months ago2 years old
Unexpected any. Specify a different type
260                `products/messages/${productId}/${lastId || 0}`,
261        }),
262        updateUser: builder.mutation<void, any>({
263            query: (data: any) => ({264                url: `users/update`,
265                method: 'PATCH',
266                body: data,
Unexpected any. Specify a different type
259            query: ({ productId, lastId }) =>
260                `products/messages/${productId}/${lastId || 0}`,
261        }),
262        updateUser: builder.mutation<void, any>({263            query: (data: any) => ({
264                url: `users/update`,
265                method: 'PATCH',
Unexpected any. Specify a different type
 87                body: userInfo,
 88            }),
 89        }),
 90        createUser: builder.mutation<void, any>({ 91            query: (user) => ({
 92                url: 'users/create',
 93                method: 'POST',
Unexpected any. Specify a different type
 25}
 26
 27interface CreatePostArgs {
 28    post: any 29    productName: string
 30    channel: string
 31}
Unexpected any. Specify a different type
31      formData.append("email", userInfo.email);
32      formData.append("password", userInfo.password);
33      formData.append("pfp", userInfo.pfp);
34      await createUser(formData).then((res:any)=>{35       localStorage.setItem("token", res.data.token)
36       dispatch(changeAuthStatus(true))
37          window.location.reload()