Use string union for Mocha interface name
Allow module augmentation to contribute new interface names
Allow `mocha.setup(interfaceName)`
Ambient variables are declared `const`, not `var`
`done` callbacks return `void` not `any`
factory functions (after, describe, it, etc) can return Promises, but not anything else.
- Promise support is explained here: https://mochajs.org/#require
- Allowing callbacks to return `any` could cause confusion. Returning anything other than a Promise is probably a mistake
- I was unable to forbid accepting a `done` callback while simultaneously returning a Promise, even though doing so triggers a runtime error
`keyof` requires at least TypeScript 2.1
- Enables strictNullChecks
- Adds options: `nothrow`, `all`, `path`, and `pathExt`
- Uses function overloading to pick most specific return types based on `all` and `nothrow` options
jQuery declares a global var `$` which makes it potentially conflict with other declarations, for example angular-protractor
autobahn.d.ts doesn't need to depend on jquery.d.ts since the only thing it used, JqueryPromise, can be replaced with when.Promise
Removes `pkg` property from `IProjectConfig` interface (the config object passed to `grunt.initConfig`) because it is not necessary; it is merely a commonly-used convention.
external module.
- tests are also updated to test loading as an external module
- mousetrap exports itself as an AMD module when an AMD define function is
present
chai plugin.
- usage is as follows:
import sinonChai = require('sinon-chai');
chai.use(sinonChai);
- Also updates the tests to compile with --noImplicitAny