-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'disconnect' does not exist #293
Comments
@Kurlrip bluetoothSerial.disconnect is in the bluetoothSerial.js https://github.com/don/BluetoothSerial/blob/master/www/bluetoothSerial.js#L13-L15 It looks like a problem with the TypeScript bindings. I suggest adding the missing binding to https://github.com/driftyco/ionic-native/blob/master/src/plugins/bluetoothserial.ts and submitting a pull request to @Driftyco. |
thk you. Else, i tried to modify my bluetoothserial.ts but don t work. |
You can submit an issue saying that disconnect is missing from bluetoothserial.ts Include links to In the mean time if you declare bluetoothSerial, you can call disconnect directly.
|
That was I just did. |
i post here : danielsogl/awesome-cordova-plugins#1151 |
I try to do this :
BluetoothSerial.disconnect()
but typescript say : Property 'disconnect' does not exist on type 'typeof BluetoothSerial'
My package project :
"dependencies": { "@angular/common": "2.4.7", "@angular/compiler": "2.4.7", "@angular/compiler-cli": "2.4.7", "@angular/core": "2.4.7", "@angular/forms": "2.4.7", "@angular/http": "2.4.7", "@angular/platform-browser": "2.4.7", "@angular/platform-browser-dynamic": "2.4.7", "@angular/platform-server": "2.4.7", "@ionic/storage": "^1.1.6", "@types/pouchdb": "5.4.28", "angular2-signaturepad": "^2.2.0", "ionic-angular": "2.0.1", "ionic-native": "2.5.1", "ionicons": "3.0.0", "pouchdb": "^6.1.1", "rxjs": "5.1.1", "zone.js": "0.7.7" }, "devDependencies": { "@ionic/app-scripts": "1.1.2", "typescript": "2.1.6" }, "cordovaPlugins": [ "cordova-plugin-whitelist", "cordova-plugin-console", "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-splashscreen", "ionic-plugin-keyboard" ]
The text was updated successfully, but these errors were encountered: