import {makeOptionsDecorator, IModel,MetadataPropertyDecoratorFactory} from 'typestore' import {IndexedDBFinderKey} from "./IndexedDBConstants"; import {IndexedDBRepoPlugin} from './IndexedDBRepoPlugin' export type IndexedDBFinderFn = (repo:IndexedDBRepoPlugin, ...args:any[]) => Promise export interface IIndexedDBFinderOptions { fn?:IndexedDBFinderFn singleResult?:boolean filter?: (o:any,...args:any[]) => boolean } export const IndexedDBFinderDescriptor = makeOptionsDecorator(IndexedDBFinderKey)