mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(tslint): add tslint & clean up code
This commit is contained in:
+21
-21
@@ -10,12 +10,12 @@ declare var sqlitePlugin;
|
||||
})
|
||||
export class SQLite {
|
||||
|
||||
private _objectInstance : any;
|
||||
get databaseFeatures() : any {
|
||||
private _objectInstance: any;
|
||||
get databaseFeatures(): any {
|
||||
return this._objectInstance.databaseFeatures;
|
||||
}
|
||||
|
||||
constructor (config : any) {
|
||||
constructor (config: any) {
|
||||
new Promise((resolve, reject) => {
|
||||
sqlitePlugin.openDatabase(config, resolve, reject);
|
||||
}).then(
|
||||
@@ -27,81 +27,81 @@ export class SQLite {
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
addTransaction (transaction : any) : void {}
|
||||
addTransaction (transaction: any): void {}
|
||||
|
||||
@CordovaInstance()
|
||||
transaction (fn : any) : Promise<any> {return}
|
||||
transaction (fn: any): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance()
|
||||
readTransaction (fn : any) : Promise<any> {return}
|
||||
readTransaction (fn: any): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
startNextTransaction () : void {}
|
||||
startNextTransaction (): void {}
|
||||
|
||||
@CordovaInstance()
|
||||
close () : Promise<any> {return}
|
||||
close (): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
start () : void {}
|
||||
start (): void {}
|
||||
|
||||
@CordovaInstance()
|
||||
executeSql (statement : string, params : any) : Promise<any> {return}
|
||||
executeSql (statement: string, params: any): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance()
|
||||
addSatement (sql, values) : Promise<any> {return}
|
||||
addSatement (sql, values): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance()
|
||||
sqlBatch (sqlStatements : any) : Promise<any> {return}
|
||||
sqlBatch (sqlStatements: any): Promise<any> {return; }
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
abortallPendingTransactions () : void {}
|
||||
abortallPendingTransactions (): void {}
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
handleStatementSuccess (handler, response) : void {}
|
||||
handleStatementSuccess (handler, response): void {}
|
||||
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
handleStatementFailure (handler, response) : void {}
|
||||
handleStatementFailure (handler, response): void {}
|
||||
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
run () : void {}
|
||||
run (): void {}
|
||||
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
abort (txFailure) : void {}
|
||||
abort (txFailure): void {}
|
||||
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
finish () : void {}
|
||||
finish (): void {}
|
||||
|
||||
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
abortFromQ (sqlerror) : void {}
|
||||
abortFromQ (sqlerror): void {}
|
||||
|
||||
|
||||
@Cordova()
|
||||
static echoTest () : Promise<any> {return}
|
||||
static echoTest (): Promise<any> {return; }
|
||||
|
||||
@Cordova()
|
||||
static deleteDatabase (first) : Promise<any> {return}
|
||||
static deleteDatabase (first): Promise<any> {return; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user