mongoose-management
Version:
Mongoose schemas management tool
12 lines (11 loc) • 903 B
TypeScript
import Prompts from '../../prompts';
import ColumnDataset from '../dataset/column';
import * as main from './columnMain';
import { schemaNormalType } from '../../types';
export declare type answersType = schemaNormalType[];
export declare type answersInternalType = {
type: schemaNormalType;
};
export declare const call: (prompts: Prompts, answersMain: main.answersType, column?: ColumnDataset | undefined) => Promise<("string" | "number" | "boolean" | "decimal" | "buffer" | "arrayType" | "date" | "objectId" | "mixed")[]>;
export declare const getQuestions: (subType?: "string" | "number" | "boolean" | "decimal" | "buffer" | "arrayType" | "date" | "objectId" | "mixed" | undefined) => readonly any[];
export declare const evaluation: (answers: ("string" | "number" | "boolean" | "decimal" | "buffer" | "arrayType" | "date" | "objectId" | "mixed")[]) => (column: ColumnDataset) => ColumnDataset;