Closed
Description
Bug Report
π Search Terms
root namespace, namespace collision
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about namespaces
β― Playground Link
π» Code
declare type B = 1
declare class C {}
declare namespace A {
export type B = globalThis.B // It works
export class C extends globalThis.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.