DefinitelyTyped/types/react-tracking
Chen Asraf f718963ff3
[types/react-tracking] Fix TrackingInfo async repsonse (#45280)
* [types/react-tracking] Fix TrackingInfo async repsonse

In https://github.com/nytimes/react-tracking#advanced-usage, it is specified:

> When tracking asynchronous methods, you can also receive the resolved or rejected data from the returned promise in the fourth argument of the function passed in for tracking:
> ```js
>   @track((props, state, methodArgs, [{ value }, err]) => {
>   // ...
>   })
> ```

This fixes the type to allow that.

* [types/react-tracking] added tests

# Conflicts:
#	types/react-tracking/index.d.ts
2020-06-04 14:16:22 +02:00
..
test
index.d.ts
tsconfig.json
tslint.json