mongoose-management
Version:
Mongoose schemas management tool
11 lines (10 loc) • 692 B
TypeScript
import Prompts from '../../prompts';
import CollectionDataset from '../dataset/collection';
import GroupDataset from '../dataset/group';
export declare type answersType = {
name: string;
};
export declare const call: (prompts: Prompts, group: GroupDataset, collection?: CollectionDataset | undefined) => Promise<answersType>;
export declare const getQuestions: (group: GroupDataset, collection?: CollectionDataset | undefined) => readonly any[];
export declare const evaluation: (answers: answersType, group: GroupDataset) => (collection?: CollectionDataset | undefined) => CollectionDataset;
export declare const validateName: (nameValues: string[]) => (value: string) => string | true;