emscripten-core / emscripten-core/emscripten

JS Intellisense

Open
#17,938 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

All of my js libraries looks like this:

```js
const LibName= {
$SomethingInternal: {
someInternalMethod: function () {
}
},
externalMethod: function () {
SomethingInternal.someInternalMethod();
}
};

autoAddDeps(LibName, '$log');
mergeInto(LibraryManager.library, LibName);
```

I won't get any intellisense because `$SomethingInternal != SomethingInternal`
IDE also shows `SomethingInternal` as non-existing

**Is there any workaround/hack to this problem to get clean and easy-to-refactor JS code?**
For example, now if I decide to move `someInternalMethod` to somewhere else I won't get IDE warning of dissapeared function and it will compile and crash at runtime

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.