Closed Ziao closed 3 months ago
Write detailed description in here.
When the generated Output types have long names (such as when inferring the type from a Prisma query), the generated code includes some questionable output.
@TypedRoute.Get('cases/:caseId/memos') async getMemos(@TypedParam('caseId') caseId: number) { return await this.db.memo.findMany({ where: { case_id: caseId }, include: { topic: true, }, }); }
Creates the following output:
export namespace getMemos { export type Output = topicidnumbernamestringdescriptionstringnullretrieval_queriesstringtopics_to_avoidstringnullcreated_atDateupdated_atDateidnumber...5more...created_atDate[]; ;
Specifically, the ...5more... part shouldn't be there.
...5more...
No way to solve this problem in the implicit return type.
Make explicit return type, then this problem be fixed.
Bug Report
Write detailed description in here.
When the generated Output types have long names (such as when inferring the type from a Prisma query), the generated code includes some questionable output.
Code causing the bug
Creates the following output:
Specifically, the
...5more...
part shouldn't be there.