RawResponseCallback type

A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times.

type RawResponseCallback = (
  rawResponse: FullOperationResponse,
  flatResponse: unknown,
  error?: unknown
) => void