In TypeScript you can merge a class and a namespace like this:
foo.ts:
class Foo { foo() {} } namespace Foo { export const ANSWER = 42; } export