UNPKG

mongoose-management

Version:
16 lines (15 loc) 782 B
import { schemaIndexTypes } from '../../mongo'; import Prompts from '../../prompts'; import ColumnDataset from '../dataset/column'; import * as main from './columnMain'; import { dataIndexColumnValueType } from '../../types'; export declare type answersType = { type: keyof typeof schemaIndexTypes; value?: dataIndexColumnValueType; }; export declare const call: (prompts: Prompts, answersMain: main.answersType, column?: ColumnDataset | undefined) => Promise<answersType>; export declare const getQuestions: (column?: ColumnDataset | undefined) => readonly any[]; export declare const evaluation: (answers: answersType) => (column: ColumnDataset) => ColumnDataset; export declare const whenValue: ({ type }: { type: "unique" | "sparse" | "no" | "index"; }) => boolean;