Closed btakita closed 3 months ago
Can you create a quick reproduction that we can run?
(A PR with the fix is also fine)
True, it has not default
export; completely missed that, but wonder how the test passed: https://github.com/nodejs/undici/blob/981fb3d72a4393f77c9f28e3ea2f77dc4cf6e9ad/types/interceptors.d.ts#L4-L11
@metcoder95 I use the check-dts package to verify the types. Typescript acts unpredictably at times with type verifications. At times, I have seen types fail in a dependent package's tests.
Perhaps importing some types in a *.test.ts module would help?
It could be useful sure, do you want to send a PR for it?
provided PR #3332
Bug Description
After upgrading to v6.19.0. When running the
check-dts
program to verify the types. The following error occurs:Reproducible By
Running
check-dts
Expected Behavior
No Type error
Logs & Screenshots
Environment
Linux 6.9.4-arch1-1 x86_64 unknown
Node v22.3.0
Additional context
Here is the line causing the error: https://github.com/nodejs/undici/blob/main/types/index.d.ts#L21
Came from https://github.com/nodejs/undici/pull/3318