You are reading the documentation for connect v1, which is no longer the latest version. Switch to connect v2
ApiClientMethodWithContext
export type ApiClientMethodWithContext<CONTEXT> = (context: CONTEXT, ...args: any) => any;export type ApiClientMethodWithContext<CONTEXT> = (context: CONTEXT, ...args: any) => any;