You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declaretypeB=1declareclassC{}declarenamespaceA{exporttypeB=globalThis.B// It worksexportclassCextendsglobalThis.C{}// Property 'C' does not exist on type 'typeof globalThis'.}
π Actual behavior
Property 'C' does not exist on type 'typeof globalThis'.
It is not possible access to the root namespace.
π Expected behavior
Be able to access to the root namespace.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
root namespace, namespace collision
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEAXAngBwQIXgXngRgFgAoUSWBMgZ0vgGF4BvAX2NOjngDsoBbES1FDAIAgo2LxJ8EAA9UAexiIkaTDngBzCPIBGUCABUAFgEtKAOiwB6K-BPKA7ooDWlCVNkKl8KjXqzEEE5gGi1dfWMzc3pmeBt4AAUYeXQlZHgAcloM+GB5fi55ZVkzZXlOFXRMlHR5ADNNbT1DU0oM82ImIA
π» Code
π Actual behavior
Property 'C' does not exist on type 'typeof globalThis'.
It is not possible access to the root namespace.
π Expected behavior
Be able to access to the root namespace.
The text was updated successfully, but these errors were encountered: