diff --git a/packages/core/src/lib/types.ts b/packages/core/src/lib/types.ts index c4de42c..7943727 100644 --- a/packages/core/src/lib/types.ts +++ b/packages/core/src/lib/types.ts @@ -1,16 +1,15 @@ import { ClassType, AbstractClassType } from '@deepkit/core'; +import { TypeAnnotation } from '@deepkit/type'; export type GraphQLFields = Record; export const PARENT_META_NAME = 'parent'; -// eslint-disable-next-line functional/prefer-readonly-type -export type Parent = T & { __meta?: [typeof PARENT_META_NAME, T] }; +export type Parent = T & TypeAnnotation; export const CONTEXT_META_NAME = 'context'; -// eslint-disable-next-line functional/prefer-readonly-type -export type Context = T & { __meta?: [typeof CONTEXT_META_NAME, T] }; +export type Context = T & TypeAnnotation; // eslint-disable-next-line @typescript-eslint/ban-types export type Instance = T & {