@dolittle/sdk.resources
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
13 lines • 620 B
TypeScript
import { Constructor } from '@dolittle/types';
import { Abstract } from '@dolittle/sdk.dependencyinversion';
declare module 'mongodb' {
namespace Collection {
/**
* Gets a {@link ServiceIdentifier} for a read model type to inject a {@link Collection} from the service provider.
* @param {Constructor} type - The type of the read model.
* @returns {Abstract} The service identifier to use for injection.
*/
function forReadModel<TReadModel>(type: Constructor<TReadModel>): Abstract<Collection<TReadModel>>;
}
}
//# sourceMappingURL=CollectionExtensions.d.ts.map