In typescript, what is the difference between these two:
declare module foo { ... }
and
declare namespace foo { ... }
From the docs I get the feeling they should be the same and the second one is preferred. However I see many .d.ts files that uses the first one which makes me unsure.