18 lines
265 B
TypeScript
18 lines
265 B
TypeScript
class Module {
|
|
public members: Class[];
|
|
}
|
|
|
|
class Namespace {
|
|
public members: (Class | Property)[];
|
|
}
|
|
|
|
class Class {
|
|
public parent: Namespace;
|
|
}
|
|
|
|
class Property {
|
|
public parent: Module | Class;
|
|
}
|
|
|
|
var t: Class | Property;
|
|
t.parent;
|