macoolka-collection
Version:
`macoolka-collection` Define Data Collection Interface.
18 lines (17 loc) • 833 B
TypeScript
import { ConstructorCollectionInput } from './Constructor';
import { URIS } from 'fp-ts/HKT';
import { IndexReaderCollectionInput } from './IndexReaderCollection';
import { ReaderCollectionInput } from './ReaderCollection';
import { SubsetCollectionInput } from './Subset';
import { IndexWriteCollectionInput } from './IndexWriterCollection';
import { Typeclass } from './typeclass';
export { URIS };
export interface Options<F extends URIS> extends ConstructorCollectionInput<F>, ReaderCollectionInput<F>, IndexReaderCollectionInput<F>, SubsetCollectionInput<F>, IndexWriteCollectionInput<F> {
}
export interface Collection<F extends URIS> extends Typeclass<F> {
}
export interface InitCollection {
<URI extends URIS>(a: Options<URI>, safe?: boolean): Collection<URI>;
}
declare const make: InitCollection;
export default make;