Repository: trpc/trpc
File: packages/react-query/src/createTRPCReact.tsx (TypeScript)

Code before:
} | void;

type ReservedInfiniteQueryKeys = 'cursor' | 'direction';
/**
 * @internal
 */
export type MaybeDecoratedInfiniteQuery<TDef extends ResolverDef> =
  TDef['input'] extends CursorInput
    ? {
        /**
         * @link https://trpc.io/docs/v11/client/react/suspense#useinfinitesuspensequery
         */
        useInfiniteQuery: (
          input: Omit<TDef['input'], ReservedInfiniteQueryKeys> | SkipToken,
          opts: UseTRPCInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => UseTRPCInfiniteQueryResult<
          TDef['output'],
          TRPCClientErrorLike<TDef>,
          TDef['input']
        >;
        usePrefetchInfiniteQuery: (
          input: Omit<TDef['input'], 'cursor' | 'direction'>,
          opts: TRPCFetchInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => void;
        /**
         * @link https://trpc.io/docs/v11/client/react/suspense
         */
        useSuspenseInfiniteQuery: (
          input: Omit<TDef['input'], 'cursor' | 'direction'>,
          opts: UseTRPCSuspenseInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => UseTRPCSuspenseInfiniteQueryResult<
          TDef['output'],
          TRPCClientErrorLike<TDef>,
          TDef['input']
        >;
      }
    : object;

/**

Review comment (suggestion):
```suggestion
          input: Omit<TDef['input'], ReservedInfiniteQueryKeys> | SkipToken,
```

Code after:
} | void;

type ReservedInfiniteQueryKeys = 'cursor' | 'direction';
/**
 * @internal
 */
export type MaybeDecoratedInfiniteQuery<TDef extends ResolverDef> =
  TDef['input'] extends CursorInput
    ? {
        /**
         * @link https://trpc.io/docs/v11/client/react/suspense#useinfinitesuspensequery
         */
        useInfiniteQuery: (
          input: Omit<TDef['input'], ReservedInfiniteQueryKeys> | SkipToken,
          opts: UseTRPCInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => UseTRPCInfiniteQueryResult<
          TDef['output'],
          TRPCClientErrorLike<TDef>,
          TDef['input']
        >;
        usePrefetchInfiniteQuery: (
          input: Omit<TDef['input'], ReservedInfiniteQueryKeys> | SkipToken,
          opts: TRPCFetchInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => void;
        /**
         * @link https://trpc.io/docs/v11/client/react/suspense
         */
        useSuspenseInfiniteQuery: (
          input: Omit<TDef['input'], 'cursor' | 'direction'>,
          opts: UseTRPCSuspenseInfiniteQueryOptions<
            TDef['input'],
            TDef['output'],
            TRPCClientErrorLike<TDef>
          >,
        ) => UseTRPCSuspenseInfiniteQueryResult<
          TDef['output'],
          TRPCClientErrorLike<TDef>,
          TDef['input']
        >;
      }
    : object;

/**