I've been encountering a type issue recently across various projects. Whenever Slice Machine regenerates the types, all of my generic types seem to go missing afterwards.
I attempted to reproduce the issue you shared with the versions supplied (thanks for that!) but no luck. The types seem to be generated properly with generics filled on my end.
Can you try again with the latest versions available? @slicemachine/adapter-next@^0.3.53 and slice-machine-ui@^2.9.1?
Two things you can also try:
Checking the Node version you're running, it should be 18 or later
Checking the version of prismic-ts-codegen you have installed, it should be the latest (0.1.22), you can do so by running npm ls prismic-ts-codegen