Currently, I am grappling with a dilemma. In my API documentation, I need to include a 'type' in an @ApiProperty for Swagger. Unfortunately, Swagger seems to be rejecting it and no matter how many websites I scour for solutions, I come up empty-handed.
The specific error message plaguing me is as follows:
TS2693: 'testTest' only refers to a type, but is being used as a value here.
type testTest = 'A' | 'B';
@ApiProperty({
type: testTest,
example: 'fr',
})
test: testTest;
Regrettably, I am constrained by the fact that the required type originates from an external library, leaving me unable to substitute it with something else.