UNPKG

mongoose-management

Version:
16 lines (15 loc) 989 B
import Prompts from '../../prompts'; import CollectionDataset from '../dataset/collection'; import IndexDataset from '../dataset/index'; import * as main from './indexMain'; import { Unpacked } from '../../types'; export declare type answersType = { [K: string]: Unpacked<IndexDataset['columns']>; }; export declare const call: (prompts: Prompts, answersMain: main.answersType, collection: CollectionDataset, index?: IndexDataset | undefined) => Promise<answersType>; export declare const getQuestions: (answersMain: main.answersType, index?: IndexDataset | undefined) => readonly any[]; export declare const evaluation: (answers: answersType) => (index: IndexDataset) => IndexDataset; export declare const normalizer: (answers: answersType | { [K: string]: answersType; }, names?: string[]) => answersType; export declare const equalIndexColumns: (answers: answersType, columns: [import("../dataset/column").default, import("../../types").dataIndexColumnValueType][]) => boolean;