1 | import { ModuleMetadata, Type } from '@nestjs/common/interfaces';
|
2 | import { MulterOptions } from './multer-options.interface';
|
3 | export type MulterModuleOptions = MulterOptions;
|
4 |
|
5 |
|
6 |
|
7 | export interface MulterOptionsFactory {
|
8 | createMulterOptions(): Promise<MulterModuleOptions> | MulterModuleOptions;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | export interface MulterModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
14 | useExisting?: Type<MulterOptionsFactory>;
|
15 | useClass?: Type<MulterOptionsFactory>;
|
16 | useFactory?: (...args: any[]) => Promise<MulterModuleOptions> | MulterModuleOptions;
|
17 | inject?: any[];
|
18 | }
|