Class LocalTypeName
The local name for a type in a particular scope.
It is possible for two distinct local type names to refer to the same underlying type through imports or type aliases. For example:
namespace A {
export class C {}
}
namespace B {
import C = A.C;
}
In the above example, two distinct local type names exist for the type C
:
one in A
and one in B
.
Since a local type name is always specific to one scope, it is not possible
for the two namespaces to share a single local type name for C
.
There may be multiple declarations of a given local type name, for example:
interface Point { x: number; }
interface Point { y: number; }
In the above example, the two declarations of Point
refer to the same
local type name.
Import path
import javascript
Direct supertypes
Indirect supertypes
Predicates
getADeclaration | Gets a declaration of this type name. |
getATypeAccess | Gets a use of this type name in a type annotation. |
getAnAccess | Gets an identifier that refers to this type name. |
getAnExportAccess | Gets a use of this type name in an export. |
getDeclarationSpace | Gets the declaration space this name belongs to. |
getFirstDeclaration | Gets the first declaration of this type name. |
getName | Gets the local name of this type. |
getScope | Gets the scope this type name is declared in. |
toString | Gets a textual representation of this element. |