Compare commits

..
Author SHA1 Message Date
Daniel 7aa5e00453 chore(): update changelog 2018-09-18 19:23:27 +02:00
Daniel 59fd0cc50d 5.0.0-beta.20 2018-09-18 19:23:22 +02:00
Max LynchandDaniel c433317051 fix(build): Fix TypeScript bug, wrong type exported for wrap fn 2018-09-18 19:23:00 +02:00
4 changed files with 17 additions and 3 deletions
+10
View File
@@ -1,3 +1,13 @@
<a name="5.0.0-beta.20"></a>
# [5.0.0-beta.20](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.19...v5.0.0-beta.20) (2018-09-18)
### Bug Fixes
* **build:** Fix TypeScript bug, wrong type exported for wrap fn ([c433317](https://github.com/ionic-team/ionic-native/commit/c433317))
<a name="5.0.0-beta.19"></a>
# [5.0.0-beta.19](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.18...v5.0.0-beta.19) (2018-09-18)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "5.0.0-beta.19",
"version": "5.0.0-beta.20",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "5.0.0-beta.19",
"version": "5.0.0-beta.20",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
+5 -1
View File
@@ -412,6 +412,10 @@ export function cordovaWarn(pluginName: string, method?: string): void {
}
}
// Fixes a bug in TypeScript 2.9.2 where the ...args is being converted into args: {} and
// causing compilation issues
export type WrapFn = (...args: any[]) => any;
/**
* @private
*/
@@ -419,7 +423,7 @@ export const wrap = (
pluginObj: any,
methodName: string,
opts: CordovaOptions = {}
) => {
): WrapFn => {
return (...args: any[]) => {
if (opts.sync) {
// Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is