Types for @strapi/helper-plugin

Hi,
I need to request to some endpoints to create plugin.
So, I use request from @strapi/helper-plugin, but suggestion is not displayed in VSCode because of @strapi/helper-plugin `s types is not exist.

import  { request } from '@strapi/helper-plugin'  // <= import suggestion is not displayed

const taskRequests = {
  getTaskCount: async () => {
    const data = await request.get(`/todo/count`);
    return data;
  },
};
export default taskRequests;

Is there any solution for displaying suggestion to @strapi/helper-plugin?
Thank you for reading

I have the same issue, solution seems to be installing helper plugin from npm

import { useFetchClient } from “@strapi/helper-plugin”;

I have found docs for some hooks/utils from @strapi/helper-plugin
Also in the source code request function is marked as deprecated

Here is docs for useFetchClient hook that is recommended

1 Like