I\'m interested in defining an existing framework (openlayers.d.ts) but cannot figure out how to express the fact that OpenLayers.Layer is both a class and a namespace for O
Use TypeScript's class expressions for this:
var OpenLayers = class { static Layer = class { static Markers = class {} } }