interceptors does not have any exported type
Bug Description
when you try to import interceptors in TS it complains
Reproducible By
import {interceptors} from "undici"
within a TypeScript project
Expected Behavior
You should be able to import interceptors and use redirect/retry in TS
Logs & Screenshots
Environment
macOS Ventura 13.2.1 node 20.11.1 undici 6.9.0
Additional context
We already have a PR for fixing that: #2967
Use Dispatcher and not Interceptors.
@Uzlopak Is the example in the docs about the retry interceptor outdated?
Hmm. You are right.
https://github.com/nodejs/undici/blob/f90c16155d8c87c0d8cc1bdf46b553e8aef144a5/index.js#L39
I dont find the corresponding types.
This will be close with #3118