1 | import { ModuleMetadata } from '@nestjs/common';
|
2 | import { ModelDefinition } from './model-definition.interface';
|
3 | export interface AsyncModelFactory extends Pick<ModuleMetadata, 'imports'>, Pick<ModelDefinition, 'name' | 'collection' | 'discriminators'> {
|
4 | useFactory: (...args: any[]) => ModelDefinition['schema'] | Promise<ModelDefinition['schema']>;
|
5 | inject?: any[];
|
6 | }
|