Oct 12, 2012 at 11:57 AM
Edited Oct 12, 2012 at 11:57 AM
|
I have a problem with creating a TypeScript definition file for the OpenLayers project (http://openlayers.org).
In OpenLayers there are classes that are named exactly like a namespace (and typically serve as base class for all classes in that namespace).
For example there is a class OpenLayers.Geometry and a class OpenLayers.Geometry.Point.
As far as I know this currently can't be supported in TypeScript since it is not possible for a type to have inner types (so
Point would be a inner type of Geometry) and it is also not possible to have a class that has the exact same name as a module/namespace.
Is there any plan to enable this kind of behavior? Is there already a way to model that kind of class library?
Thanks in advance!
|