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
+6 -6
View File
@@ -11,7 +11,7 @@ declare var sqlitePlugin;
*
* @usage
*
* ```ts
* ```typescript
* import { SQLite } from 'ionic-native';
*
* let db = new SQLite();
@@ -22,10 +22,10 @@ declare var sqlitePlugin;
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {
*
* }, (err) => {
* console.error('Unable to execute sql', err);
* })
* console.error('Unable to execute sql: ', err);
* });
* }, (err) => {
* console.error('Unable to open database', err);
* console.error('Unable to open database: ', err);
* });
* ```
*
@@ -52,7 +52,7 @@ export class SQLite {
* @param config the config for opening the database.
* @usage
*
* ```ts
* ```typescript
* import { SQLite } from 'ionic-native';
*
* let db = new SQLite();
@@ -112,7 +112,7 @@ export class SQLite {
*
* @usage
*
* ```ts
* ```typescript
* db.executeSql('SELECT FROM puppies WHERE type = ?', ['cavalier']).then((resultSet) => {
* // Access the items through resultSet.rows
* // resultSet.rows.item(i)