fix(plugins): fix rxjs 6 build errors

#2439
This commit is contained in:
Daniel
2018-04-05 21:44:19 +02:00
parent 48b0f16ed9
commit 3ced31ed2a
54 changed files with 580 additions and 393 deletions
+11 -3
View File
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
import { Observable } from 'rxjs';
export interface ZeroconfService {
domain: string;
@@ -79,7 +79,13 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<ZeroconfResult>} Returns a Promise that resolves with the registered service.
*/
@Cordova()
register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise<ZeroconfResult> {
register(
type: string,
domain: string,
name: string,
port: number,
txtRecord: any
): Promise<ZeroconfResult> {
return;
}
@@ -144,7 +150,9 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<void>}
*/
@Cordova()
reInit(): Promise<void> { return; }
reInit(): Promise<void> {
return;
}
/**
* Family of addresses to register: ipv4, ipv6 or any.
*/