UNPKG

511 BTypeScriptView Raw
1import { IModel, MetadataPropertyDecoratorFactory } from 'typestore';
2import { IndexedDBRepoPlugin } from './IndexedDBRepoPlugin';
3export declare type IndexedDBFinderFn = <M extends IModel>(repo: IndexedDBRepoPlugin<M>, ...args: any[]) => Promise<M[]>;
4export interface IIndexedDBFinderOptions {
5 fn?: IndexedDBFinderFn;
6 singleResult?: boolean;
7 filter?: (o: any, ...args: any[]) => boolean;
8}
9export declare const IndexedDBFinderDescriptor: MetadataPropertyDecoratorFactory<IIndexedDBFinderOptions>;