UNPKG

mongoose-management

Version:
16 lines (15 loc) 980 B
import Prompts from '../../prompts'; import CollectionDataset from '../dataset/collection'; import ColumnDataset from '../dataset/column'; import { schemaType } from '../../types'; export declare type answersType = { name: string; type: schemaType; }; export declare const call: (prompts: Prompts, parent: ColumnDataset | CollectionDataset, column?: ColumnDataset | undefined) => Promise<answersType>; export declare const getQuestions: (parent: ColumnDataset | CollectionDataset, column?: ColumnDataset | undefined) => readonly any[]; export declare const evaluation: (answers: answersType, parent: ColumnDataset | CollectionDataset, collection: CollectionDataset) => (column?: ColumnDataset | undefined) => ColumnDataset; export declare const validateName: (reservedColumnNames: string[], existedColumnName: string[], nameValue?: string | undefined) => (value: string) => string | true; export declare const whenType: () => ({ name }: { name: string; }) => boolean;