DefinitelyTyped/types/wegame-api
J.C b22915ad86 Update wegame-api to match the newest official lib: 2.9.3 (#40348)
* 1,added parameter for the callback member of `fail` for Unzip API
2,the argument of access is wrong, no it's fixed to `filePath -> path` (`accessSync` does not have return value in official site, don't know why...)
3,added `digest` for the argument in the callback of `fileInfo` API
4,added more doc info for download API to describe `filePath` and `res.tempFilePath`
5,added more doc info for `removeSavedFile` (remove file should use `unlink` in newer version)

* modify version number

* 1, fixed bug: the members of the argument object of the callback function for touch event (e.g.: onTouchMove onTouchDown etc) are incorrect.
2, add onTap etc members for API wx.createXXXButton
3, improve: change the array members of the callback function as ready only for some APIs

* fixed format error for dtslint

* add rule

* update index.d.ts

disable dt-header rule (but still according the header rule format), because the official version has the minor version number

* add `non-npm package` for header for the new rule

* restore to the default state

* misunderstand about the version

originally I thought the version should be matched with the lib version, so changed it frequently, but that's just a misunderstanding, let's start to maintain this defintion from 2.6 as the first version number :)

* 1, change the parameter as optional for `success` callback of `DownfileParams` interface.
2, fixed bug: the parameter `callback` had a wrong type before for onProgressUpdate interface.

* fix bug for DownloadTask

1, change the parameter as optional for `success` callback of `DownfileParams` interface.
2, fixed bug: the parameter `callback` had a wrong type before for onProgressUpdate interface.

* update to match the official lib 2.9.3
2019-11-13 14:53:48 -08:00
..
index.d.ts
tsconfig.json
tslint.json
wegame-api-tests.ts