Module augmentation seems to break when namespace and class have same name #52933
Labels
Bug
A bug in TypeScript
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone


Bug Report
Module Augmentation
Namespace
Class
Same name
Jupyterlab
Doesn't work because it's about module augmentation.
The above fails because
myExtraOptionis an option not officially in@jupyterlab/codemirror.However, when I add
it starts failing instead with
it seems that the declaration file somehow starts shadowing the class
CodeMirrorEditorwhich is also in@jupyterlab/codemirrorDeclaration merging is hiding the class
The namespace is extended while the class is still visible
The text was updated successfully, but these errors were encountered: