diff --git a/packages/query-graphql/src/decorators/filterable-field.decorator.ts b/packages/query-graphql/src/decorators/filterable-field.decorator.ts index 8c1354327..7a8b12b5c 100644 --- a/packages/query-graphql/src/decorators/filterable-field.decorator.ts +++ b/packages/query-graphql/src/decorators/filterable-field.decorator.ts @@ -1,4 +1,4 @@ -import { Field, FieldOptions, ReturnTypeFunc } from '@nestjs/graphql' +import { Field, FieldOptions, ReturnTypeFunc, ReturnTypeFuncValue } from '@nestjs/graphql' import { ArrayReflector, Class, FilterComparisonOperators, getPrototypeChain } from '@ptc-org/nestjs-query-core' import { FILTERABLE_FIELD_KEY } from './constants' @@ -13,7 +13,7 @@ export type FilterableFieldOptions = { export interface FilterableFieldDescriptor { propertyName: string target: Class - returnTypeFunc?: ReturnTypeFunc + returnTypeFunc?: ReturnTypeFunc advancedOptions?: FilterableFieldOptions } diff --git a/packages/query-graphql/src/decorators/id-field.decorator.ts b/packages/query-graphql/src/decorators/id-field.decorator.ts index e0c34757d..188e24beb 100644 --- a/packages/query-graphql/src/decorators/id-field.decorator.ts +++ b/packages/query-graphql/src/decorators/id-field.decorator.ts @@ -1,4 +1,4 @@ -import { Field, FieldOptions, ReturnTypeFunc } from '@nestjs/graphql' +import { Field, FieldOptions, ReturnTypeFunc, ReturnTypeFuncValue } from '@nestjs/graphql' import { Class, MetaValue, ValueReflector } from '@ptc-org/nestjs-query-core' import { ID_FIELD_KEY } from './constants' @@ -12,7 +12,7 @@ export type IDFieldOptions = FilterableFieldOptions | NoFilterIDFieldOptions export interface IDFieldDescriptor { propertyName: string - returnTypeFunc: ReturnTypeFunc + returnTypeFunc: ReturnTypeFunc } /** diff --git a/packages/query-graphql/src/types/query/field-comparison/field-comparison.factory.ts b/packages/query-graphql/src/types/query/field-comparison/field-comparison.factory.ts index d3bf746bc..92b7de3bd 100644 --- a/packages/query-graphql/src/types/query/field-comparison/field-comparison.factory.ts +++ b/packages/query-graphql/src/types/query/field-comparison/field-comparison.factory.ts @@ -79,7 +79,7 @@ type FilterComparisonOptions = { FieldType: Class fieldName: string allowedComparisons?: FilterComparisonOperators[] - returnTypeFunc?: ReturnTypeFunc + returnTypeFunc?: ReturnTypeFunc } /** @internal */