Improvements on documentation (#340)

* Improvements on documentation and some refactor

* ts | js -> typescript (docs)
This commit is contained in:
Guillermo
2016-07-20 17:17:09 +02:00
committed by Ibrahim Hadeed
parent d4d30ab9c9
commit 7952f9ef60
65 changed files with 281 additions and 279 deletions
+7 -11
View File
@@ -112,24 +112,20 @@ export interface FileTransferError {
* This plugin allows you to upload and download files.
*
* @usage
* ```typescript
* import { Transfer } from 'ionic-native';
*
* Create instance:
* ```ts
*
* // Create instance:
* const fileTransfer = new Transfer();
* ```
*
* Upload a file:
* ```ts
* // Upload a file:
* fileTransfer.upload(..).then(..).catch(..);
* ```
*
* Download a file:
* ```ts
* // Download a file:
* fileTransfer.download(..).then(..).catch(..);
* ```
*
* Abort active transfer:
* ```ts
* // Abort active transfer:
* fileTransfer.abort();
* ```
*