1nwf / Produx-v2

Detected usage of void type outside of generic or return types JS-0333
Anti-pattern
Minor
10 months ago10 months old
void is only valid as a return type or generic type argument
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',
void is only valid as a return type or generic type argument
253            providesTags: ['Comments'],
254        }),
255        getChatMessages: builder.query<
256            void,257            { productId: number; lastId?: number }
258        >({
259            query: ({ productId, lastId }) =>
void is only valid as a return type or generic type argument
235            },
236        }),
237        deletePost: builder.mutation<
238            void,239            { productId: number; postId: number; field: string }
240        >({
241            query: ({ productId, postId, field }) => ({
void is only valid as a return type or generic type argument
218            },
219        }),
220        removeFromPostsBoard: builder.mutation<
221            void,222            {
223                productId: number
224                postId: number
void is only valid as a return type or generic type argument
201            providesTags: ['Board'],
202        }),
203        addToPostsBoard: builder.mutation<
204            void,205            {
206                productId: number
207                postId: number