次の方法で共有


CommonRequestInit type

type CommonRequestInit = Omit<RequestInit, "body" | "headers" | "signal"> & {
  body?: any
  headers?: any
  signal?: any
}