Skip to content

Commit

Permalink
Minor fixes to plugin typings
Browse files Browse the repository at this point in the history
Fixes from: #657
  • Loading branch information
Nikita Matrosov authored and Christopher J. Brody committed Apr 18, 2018
1 parent 72d6e5b commit 4cace71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<string|[string, any[]]>, success?: SuccessCallback, error?: ErrorCallback): void;
sqlBatch(sqlStatements: Array<string|[string, any[]]>, success?: SuccessCallback, error?: ErrorCallback): void;

close(success?: SuccessCallback, error?: ErrorCallback): void;
}
Expand All @@ -65,4 +65,3 @@ declare namespace SQLitePlugin {
echoTest(ok?: (value: string) => void, error?: (msg: string) => void): void;
}
}

0 comments on commit 4cace71

Please sign in to comment.