You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
undici/types/index.d.ts:21:8: Type error TS1192: Module '"undici@6.19.0/node_modules/undici/types/interceptors"' has no default export #3330
@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?
Activity
mcollina commentedon Jun 14, 2024
Can you create a quick reproduction that we can run?
mcollina commentedon Jun 14, 2024
(A PR with the fix is also fine)
metcoder95 commentedon Jun 14, 2024
True, it has not
defaultexport; completely missed that, but wonder how the test passed:undici/types/interceptors.d.ts
Lines 4 to 11 in 981fb3d
btakita commentedon Jun 14, 2024
@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?
metcoder95 commentedon Jun 16, 2024
It could be useful sure, do you want to send a PR for it?
Uzlopak commentedon Jun 17, 2024
provided PR #3332