From 19bababa680ebdb0bcccea3e8710a5ca4b877ebe Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 19 Aug 2021 16:44:50 -0700 Subject: [PATCH] Use method syntax in QueryTarget. --- src/matrix/storage/idb/QueryTarget.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/matrix/storage/idb/QueryTarget.ts b/src/matrix/storage/idb/QueryTarget.ts index 91756129..e3b77810 100644 --- a/src/matrix/storage/idb/QueryTarget.ts +++ b/src/matrix/storage/idb/QueryTarget.ts @@ -21,12 +21,12 @@ type Reducer = (acc: B, val: A) => B export type IDBQuery = IDBValidKey | IDBKeyRange | undefined | null interface QueryTargetInterface { - openCursor: (range?: IDBQuery, direction?: IDBCursorDirection | undefined) => IDBRequest; - openKeyCursor: (range?: IDBQuery, direction?: IDBCursorDirection | undefined) => IDBRequest; - supports: (method: string) => boolean; + openCursor(range?: IDBQuery, direction?: IDBCursorDirection | undefined): IDBRequest; + openKeyCursor(range?: IDBQuery, direction?: IDBCursorDirection | undefined): IDBRequest; + supports(method: string): boolean; keyPath: string | string[]; - get: (key: IDBValidKey | IDBKeyRange) => IDBRequest; - getKey: (key: IDBValidKey | IDBKeyRange) => IDBRequest; + get(key: IDBValidKey | IDBKeyRange): IDBRequest; + getKey(key: IDBValidKey | IDBKeyRange): IDBRequest; } export class QueryTarget {