Closed NullVoxPopuli closed 6 months ago
here is my repro: https://stackblitz.com/edit/stackblitz-starters-d2rfdx?description=Starter%20project%20for%20Node.js,%20a%20JavaScript%20runtime%20built%20on%20Chrome%27s%20V8%20JavaScript%20engine&file=my-library%2Fpackage.json,.gitignore,my-library%2F.attw.json,package.json,my-library%2Fcolon%3Ahere.d.ts&file=consumer%2Findex.ts,my-library%2F.attw.json&title=node.new%20Starter
tl;dr:
I want to import package-name/sub-path:colon
package-name/sub-path:colon
but it seems not allowed? and I can't figure out why? this could be a TS bug, too -- as far as I can tell, : works just fine at runtime.
:
I opened an issue here: https://github.com/microsoft/TypeScript/issues/57529
Gonna close this, because the answer is to declare ambient type declarations, rather than rely on package.json#exports
Yep: #107
here is my repro: https://stackblitz.com/edit/stackblitz-starters-d2rfdx?description=Starter%20project%20for%20Node.js,%20a%20JavaScript%20runtime%20built%20on%20Chrome%27s%20V8%20JavaScript%20engine&file=my-library%2Fpackage.json,.gitignore,my-library%2F.attw.json,package.json,my-library%2Fcolon%3Ahere.d.ts&file=consumer%2Findex.ts,my-library%2F.attw.json&title=node.new%20Starter
tl;dr:
I want to import
package-name/sub-path:colon
but it seems not allowed? and I can't figure out why? this could be a TS bug, too -- as far as I can tell,
:
works just fine at runtime.I opened an issue here: https://github.com/microsoft/TypeScript/issues/57529