isaacs / minipass

A stream implementation that does more by doing less

Home Page:https://twitter.com/izs/status/1174465160737509376

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typing issue with the latest version of minipass

Stono opened this issue · comments

Hey,
We use https://www.npmjs.com/package/tar which in turn uses minipass, compiling against the latest version of minipass (and using @types/minipass) gives the following error:

#24 9.278 node_modules/@types/tar/index.d.ts(252,36): error TS2709: Cannot use namespace 'MiniPass' as a type.

Pinning minipass to 3.2.1 in our project works around it.

Wasn't sure where best to raise this, i'll cross-raise it on the tar repo too!

I believe the root issue here is DefinitelyTyped/DefinitelyTyped#60901.

I think this is caused because of the bundled types using a different kind of export than the current ones on DefinitelyTyped.
I opened #41 a little while ago which I think should fix this

Closed by #41