Closes #3167 Closes #3221
This matches how DefinitelyTyped tests it, so we are one step closer to publishing the same file we generate. See #3195
This means that we can now run just the d.ts file generation by running: ```bash gulp docs/typings ``` In addition the type definition generation was messing with the other docs tasks so separating it also fixes problems there.