Some TypeScript type hint missing when using Bun #4283
Unanswered
joshuaavalon
asked this question in
Questions
Replies: 2 comments
-
For the case 2), it seems to work as far as I can see. For the case 1), we will investigate but it might be the limit of what our auto-type fetcher can do |
Beta Was this translation helpful? Give feedback.
0 replies
-
@rubenfiszel For case 2, I can confirm it is not working on the cloud. import { initMdh } from "@media-data-hub/sdk";
async function main() {
const a = await initMdh({});
a.create();
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found there are 2 cases the web editor does not have type hint but the code can still be run. (Bun)
package.json subpath exports
The web editor seems to referencing
types
inpackage.json
but ignoringexports
. So, if the package has subpath exports likepackage-a/b
, the web editor cannot resolve.TypeScript
extends
Beta Was this translation helpful? Give feedback.
All reactions