- Update execa to v0.8
- Add JSDoc documentation for everything
- Fix being unable to pass boolean to `shell` option due to intersection type issues
- Restructure definitions file based on chroma-js typings to expose function return types
* master: (356 commits)
vuex-i18n: Fixes from code review (#21418)
resourcejs: Increase TypeScript version to match mongoose
leaflet.polylinemeasure: Add TypeScript version
updated TS version to 2.3 for abel-webpack-plugin.
crlf -> lf
Make hljs a proper UMD module
Use only major.minor for `highlight.js`.
atom: fix several incorrect definitions.
Update index.d.ts
Node: `path.format` input properties are optional (#21003)
New typings for fs-cson module (#21375)
New typings for bunyan-format module (#21376)
[chart.js] Add 'pie' to ChartType
Update highlight.js version to latest (9.12.0)
Fix type for highlight.js continuation argument
Fixed errors after dts-gen
New typings for module wtfnode
fix getMeasure result fix: IGenericDimensionLayout
change return Value of getDimension() from Dimension Object
puppeteer: setCookie should be less strict
...
# Conflicts:
# types/three/test/css3d/css3d_sprites.ts
# types/three/test/webgl/webgl_materials.ts
Using `Object` causes a lot of assignability issues, instead, using a generic will make callbacks easier to type and use when using the `chrome.devtools.inspectedWindow.eval()`.
This adds type hints for builders, commands and their respective
callbacks functions out to seven arity, while leaving the nonspecific
versions for backwards compatibility. This allows
`commandFactory.getOrCreate()` to create fully type hinted callback
signatures, both for the builder and the command.
```js
const command = commandFactory.
getOrCreate<ResponseType, Arg1Type, Arg2Type>();
```
I also replaced all references to `Q` with `PromiseLike`, and added the
missing `hystrix.promise.implementation` configuration option, which
allows changing the underlying promise implementation.
This allows things like:
```js
const Bluebird = require("bluebird");
HystrixConfig.init({
"hystrix.promise.implementation": Bluebird
});
(command.execute() as Bluebird<any>).catch(() => true);
```
...although I couldn't figure out how to more elegantly express that
Bluebird type.
Also made the fallback signature match the implementation.