I am using nestjs with prisma and swagger. When I use
import {PrismaGeneratedType} from '@prisma/client';
...
@ApiOkResponse({type: PrismaGeneratedType})
in a controller if gives error:
'PrismaGeneratedType' only refers to a type, but is being used as a value here
since prisma generate types
and not class definitions. How can I use Prisma generated client (types) with swagger?