How do i use Strapi's auto-generate typescript types?

I know there is a Shared type, and that I could probably import that:

import { Shared } from '@strapi/types';

And then

type RetailPointsPage = Shared.ContentTypes['api::blog-post.blog-post'];

But this doesn’t seem to work, and importing like this is cumbersome.

Is there maybe some configuration I have to add, to be able to import proper types?

This topic has been created from a Discord post (1251556127745769472) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

There is a working solution

Based on this thread TS - Generated types are a bit off. · Issue #19305 · strapi/strapi · GitHub

But I would not call it less cumbersome