Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Rosenkranz committed Apr 25, 2023
1 parent 84d17d9 commit 3f5d8bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -13,7 +13,7 @@ export type FilterableFieldOptions = {
export interface FilterableFieldDescriptor {
propertyName: string
target: Class<unknown>
returnTypeFunc?: ReturnTypeFunc
returnTypeFunc?: ReturnTypeFunc<ReturnTypeFuncValue>
advancedOptions?: FilterableFieldOptions
}

Expand Down
4 changes: 2 additions & 2 deletions packages/query-graphql/src/decorators/id-field.decorator.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -12,7 +12,7 @@ export type IDFieldOptions = FilterableFieldOptions | NoFilterIDFieldOptions

export interface IDFieldDescriptor {
propertyName: string
returnTypeFunc: ReturnTypeFunc
returnTypeFunc: ReturnTypeFunc<ReturnTypeFuncValue>
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type FilterComparisonOptions<T> = {
FieldType: Class<T>
fieldName: string
allowedComparisons?: FilterComparisonOperators<T>[]
returnTypeFunc?: ReturnTypeFunc
returnTypeFunc?: ReturnTypeFunc<ReturnTypeFuncValue>
}

/** @internal */
Expand Down

0 comments on commit 3f5d8bf

Please sign in to comment.