UNPKG

mongoose-management

Version:
23 lines (22 loc) 1.04 kB
import Prompts from '../../prompts'; import CollectionDataset from '../dataset/collection'; import ColumnDataset from '../dataset/column'; import IndexDataset from '../dataset/index'; export declare type answersType = { name: string; columns: ColumnDataset[]; }; export declare const call: (prompts: Prompts, collection: CollectionDataset, index?: IndexDataset | undefined) => Promise<answersType>; export declare const getQuestions: (collection: CollectionDataset, index?: IndexDataset | undefined) => readonly any[]; export declare const evaluation: (answers: answersType, collection: CollectionDataset) => (index?: IndexDataset | undefined) => IndexDataset; export declare const getChoiceItem: (column: ColumnDataset, columns: string[]) => { name: string; value: ColumnDataset; short: string; checked: boolean; disabled: boolean; }; export declare const validateName: (nameValues: string[]) => (value: string) => string | true; export declare const whenColumns: () => ({ name }: { name: string; }) => boolean;