From 4cace71baa99a0b1d0f7c65e1272bb73e99b6130 Mon Sep 17 00:00:00 2001 From: Nikita Matrosov Date: Sun, 26 Mar 2017 13:51:50 +0300 Subject: [PATCH] Minor fixes to plugin typings Fixes from: https://github.com/litehelpers/Cordova-sqlite-storage/pull/657 --- types/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 7759ab5ad..2f78c908f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -18,7 +18,7 @@ declare namespace SQLitePlugin { type TransactionStatementSuccessCallback = (tx: Transaction, results: Results) => void; type ErrorCallback = (err: Error) => void; - type TransactionStatementErrorCallback = (tx: Transaction, err: Error) => boolean|void; + type TransactionStatementErrorCallback = (tx: Transaction, err: Error) => boolean | void; interface OpenArgs { name: string; @@ -53,7 +53,7 @@ declare namespace SQLitePlugin { readTransaction(fn: TransactionFunction, error?: ErrorCallback, success?: SuccessCallback): void; executeSql(statement: string, params?: any[], success?: StatementSuccessCallback, error?: ErrorCallback): void; - sqlBatch (sqlStatements: Array, success?: SuccessCallback, error?: ErrorCallback): void; + sqlBatch(sqlStatements: Array, success?: SuccessCallback, error?: ErrorCallback): void; close(success?: SuccessCallback, error?: ErrorCallback): void; } @@ -65,4 +65,3 @@ declare namespace SQLitePlugin { echoTest(ok?: (value: string) => void, error?: (msg: string) => void): void; } } -