Can someone explain the distinction in TypeScript between the following two declarations:
declare module foo { ... }
and
declare namespace foo { ... }
While documentation suggests that they are equivalent and the second one is recommended, I've noticed numerous .d.ts files using the first version which has left me uncertain.