Use method syntax in QueryTarget.
This commit is contained in:
parent
704a8d99c7
commit
19bababa68
1 changed files with 5 additions and 5 deletions
|
@ -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> {
|
||||||
|
|
Reference in a new issue