/* eslint-disable @typescript-eslint/no-explicit-any */

import type { stitchSchemas } from '@graphql-tools/stitch'

export type SubschemaConfig = NonNullable<
  Parameters<typeof stitchSchemas>[0]['subschemas']
>[0]
export type Context = { exerciseId: string }
export type DeepPartial<T> = {
  [P in keyof T]?: T[P] extends object ? Partial<T[P]> : T[P]
}
export type SubschemaResolverType<T> = DeepPartial<T>
