Problemunvalidated
Adding `dispatcher: openaiAgent` to a Node `fetch()` RequestInit and casting to `RequestInit & { dispatcher: Agent }` fails with TS2352 — in a pnpm monorepo. Tension: The two `Dispatcher.ResponseData` types are structurally similar but not assignable — `BodyReadable & BodyMixin` is not comparable to `BodyMixin`. Outcome: The compiler sees the lib.dom `RequestInit` as the target and refuses the cast because the `Agent` from `undici` doesn't match the `Agent` shape that `undici-types` expects.
aefcdbaa-5cab-4045-8bcb-a62e6caaa904
Adding dispatcher: openaiAgent to a Node fetch() RequestInit and casting to RequestInit & { dispatcher: Agent } fails with TS2352 — in a pnpm monorepo. Tension: The two Dispatcher.ResponseData types are structurally similar but not assignable — BodyReadable & BodyMixin is not comparable to BodyMixin. Outcome: The compiler sees the lib.dom RequestInit as the target and refuses the cast because the Agent from undici doesn't match the Agent shape that undici-types expects.