diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 8d0e7c5af..40dcd9574 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -32,9 +32,9 @@ export interface DeeplinkMatch { * ```typescript * import { Deeplinks } from '@ionic-native/deeplinks'; * - * constructor(private deepLinks: DeepLinks) { } + * constructor(private deeplinks: Deeplinks) { } * - * this.deepLinks.route({ + * this.deeplinks.route({ * '/about-us': AboutPage, * '/universal-links-test': AboutPage, * '/products/:productId': ProductPage @@ -53,7 +53,7 @@ export interface DeeplinkMatch { * the actual navigation for you: * * ```typescript - * this.deepLinks.routeWithNavController(this.navController, { + * this.deeplinks.routeWithNavController(this.navController, { * '/about-us': AboutPage, * '/products/:productId': ProductPage * }).subscribe((match) => { diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index 525fd77ad..b8a0c8afa 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -14,7 +14,7 @@ export class MediaObject { * @param src {string} A URI containing the audio content. * @param onStatusUpdate {Function} A callback function to be invoked when the status of the file changes */ - constructor(private _objectInstnace: any) {} + constructor(private _objectInstance: any) {} /** * Get the current amplitude of the current recording. @@ -256,7 +256,8 @@ export class MediaPlugin { // Creates a new media object // Resolves with the media object // or rejects with the error - const instance = new Media(src, () => resolve(new Media(instance)), reject, onStatusUpdate); + const instance = new Media(src, resolve, reject, onStatusUpdate); + return resolve(new MediaObject(instance)); }); } diff --git a/src/@ionic-native/plugins/toast/index.ts b/src/@ionic-native/plugins/toast/index.ts index 359016976..f9ef0a793 100644 --- a/src/@ionic-native/plugins/toast/index.ts +++ b/src/@ionic-native/plugins/toast/index.ts @@ -51,7 +51,7 @@ export interface ToastOptions { * * ... * - * thisoast.show("I'm a toast", '5000', 'center').subscribe( + * this.toast.show("I'm a toast", '5000', 'center').subscribe( * toast => { * console.log(toast); * }