mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Use method syntax in QueryTarget.
This commit is contained in:
parent
704a8d99c7
commit
19bababa68
@ -21,12 +21,12 @@ type Reducer<A,B> = (acc: B, val: A) => B
|
|||||||
export type IDBQuery = IDBValidKey | IDBKeyRange | undefined | null
|
export type IDBQuery = IDBValidKey | IDBKeyRange | undefined | null
|
||||||
|
|
||||||
interface QueryTargetInterface<T> {
|
interface QueryTargetInterface<T> {
|
||||||
openCursor: (range?: IDBQuery, direction?: IDBCursorDirection | undefined) => IDBRequest<IDBCursorWithValue | null>;
|
openCursor(range?: IDBQuery, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
|
||||||
openKeyCursor: (range?: IDBQuery, direction?: IDBCursorDirection | undefined) => IDBRequest<IDBCursor | null>;
|
openKeyCursor(range?: IDBQuery, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
|
||||||
supports: (method: string) => boolean;
|
supports(method: string): boolean;
|
||||||
keyPath: string | string[];
|
keyPath: string | string[];
|
||||||
get: (key: IDBValidKey | IDBKeyRange) => IDBRequest<T | null>;
|
get(key: IDBValidKey | IDBKeyRange): IDBRequest<T | null>;
|
||||||
getKey: (key: IDBValidKey | IDBKeyRange) => IDBRequest<IDBValidKey | undefined>;
|
getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class QueryTarget<T> {
|
export class QueryTarget<T> {
|
||||||
|
Loading…
Reference in New Issue
Block a user