UNPKG

624 BTypeScriptView Raw
1import { ModuleMetadata, Type } from '@nestjs/common/interfaces';
2import { MulterOptions } from './multer-options.interface';
3export type MulterModuleOptions = MulterOptions;
4/**
5 * @publicApi
6 */
7export interface MulterOptionsFactory {
8 createMulterOptions(): Promise<MulterModuleOptions> | MulterModuleOptions;
9}
10/**
11 * @publicApi
12 */
13export 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}