mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-07 19:59:00 +08:00
The executeSql errorCallback may optionally return a boolean value to indicate whether to continue executing statements (false) or to rollback the transaction (true or void).
This commit is contained in:
4
cordova/plugins/WebSQL.d.ts
vendored
4
cordova/plugins/WebSQL.d.ts
vendored
@@ -62,12 +62,12 @@ interface SqlTransaction {
|
||||
* @param sql SQL statement to execute.
|
||||
* @param arguments SQL stetement arguments.
|
||||
* @param successCallback Called in case of query has been successfully done.
|
||||
* @param errorCallback Called, when query fails.
|
||||
* @param errorCallback Called, when query fails. Return false to continue transaction; true or no return to rollback.
|
||||
*/
|
||||
executeSql(sql: string,
|
||||
arguments?: any[],
|
||||
successCallback?: (transaction: SqlTransaction, resultSet: SqlResultSet) => void,
|
||||
errorCallback?: (transaction: SqlTransaction, error: SqlError) => void): void;
|
||||
errorCallback?: (transaction: SqlTransaction, error: SqlError) => any): void;
|
||||
}
|
||||
|
||||
declare var SqlTransaction: {
|
||||
|
||||
Reference in New Issue
Block a user