diff --git a/examples/generic-types/paginated-response.type.ts b/examples/generic-types/paginated-response.type.ts index 693e4fbaa..948c52847 100644 --- a/examples/generic-types/paginated-response.type.ts +++ b/examples/generic-types/paginated-response.type.ts @@ -1,11 +1,13 @@ import { ClassType, Field, ObjectType, Int } from "../../src"; -export default function PaginatedResponse(TItemClass: ClassType) { +export default function PaginatedResponse( + itemsFieldValue: ClassType | String | Number | Boolean, +) { // `isAbstract` decorator option is mandatory to prevent registering in schema @ObjectType({ isAbstract: true }) abstract class PaginatedResponseClass { - @Field(type => [TItemClass]) - items: TItem[]; + @Field(type => [itemsFieldValue]) + items: TItemsFieldValue[]; @Field(type => Int) total: number; diff --git a/examples/resolvers-inheritance/resource/resource.resolver.ts b/examples/resolvers-inheritance/resource/resource.resolver.ts index 47bc52aa5..7e388b88c 100644 --- a/examples/resolvers-inheritance/resource/resource.resolver.ts +++ b/examples/resolvers-inheritance/resource/resource.resolver.ts @@ -25,7 +25,7 @@ export class GetAllArgs { } export function ResourceResolver( - ResourceCls: ClassType, + ResourceCls: ClassType, resources: TResource[], ) { const resourceName = ResourceCls.name.toLocaleLowerCase();