mongoose-management
Version:
Mongoose schemas management tool
41 lines (40 loc) • 1.12 kB
TypeScript
import { Options } from 'prettier';
import Prompts from '../prompts';
import Converter from './converter';
import { dataCollectionType, templateCollectionNamesType, templateCollectionType } from '../types';
/**
*
*/
export default class Create {
protected prompts: Prompts;
protected pathProject: string;
protected pathTemplates: string;
protected prettier: Options;
protected converter: Converter;
protected interfaceName: string;
/**
*
* @param prompts
* @param pathProject
* @param pathTemplates
* @param prettier
* @param converter
*/
constructor(prompts: Prompts, pathProject: string, pathTemplates: string, prettier: Options, converter?: Converter);
/**
*
* @param source
* @param collections
*/
exec(destination: string, collections: dataCollectionType[]): Promise<void>;
/**
*
* @param collection
*/
getCollectionDataset(collection: dataCollectionType): templateCollectionType;
/**
*
* @param name
*/
createCollectionNames(name: string): templateCollectionNamesType;
}