Skip to content

Commit

Permalink
sdk: chore: adjust db type for TS 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevmatos committed Sep 21, 2022
1 parent 115be44 commit 5d0b140
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion raiden-ts/src/db/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ async function makeDatabase(
* @returns Observable of changes responses
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export function changes$<T = {}>(db: RaidenDatabase, options?: PouchDB.Core.ChangesOptions) {
export function changes$<T extends {} = {}>(
db: RaidenDatabase,
options?: PouchDB.Core.ChangesOptions,
) {
// concat allows second defer to be skipped in case of first()/take(1) succeeding
return defer(() => {
const feed = db.changes<T>(options);
Expand Down

0 comments on commit 5d0b140

Please sign in to comment.