Is there a typescript example for adding a custom fetch handler

Is there a typescript example for adding a custom fetch handler.

The example in:

https://www.apollographql.com/docs/react/api/link/apollo-link-http/#customizing-fetch

fails with:

src/MultiAPILinkMark2.spec.ts:60:29 - error TS2322: Type '(uri: any, options: any) => Promise<Response>' is not assignable to type '(input: RequestInfo, init?: RequestInit) => Promise<Response>'.
  Type 'Promise<import("/home/mwoodpatrick/projects/git/www/blog-series-nextjs-nx/node_modules/@types/node-fetch/index").Response>' is not assignable to type 'Promise<Response>'.
    Type 'Response' is missing the following properties from type 'Response': trailer, formData

60       return new HttpLink({ fetch: customFetch });
                               ~~~~~

  ../../node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.d.ts:14:5
    14     fetch?: WindowOrWorkerGlobalScope['fetch'];
           ~~~~~
    The expected type comes from property 'fetch' which is declared here on type 'HttpOptions'

This is not covered in: