@dineug/erd-editor
Version:
Entity-Relationship Diagram Editor
16 lines (15 loc) • 683 B
TypeScript
import { ValuesType } from '../../internal-types';
export type Cell = [CellType | '', string];
export type Row = Cell[];
export declare const CellType: {
readonly columnName: "columnName";
readonly columnDataType: "columnDataType";
readonly columnNotNull: "columnNotNull";
readonly columnUnique: "columnUnique";
readonly columnAutoIncrement: "columnAutoIncrement";
readonly columnDefault: "columnDefault";
readonly columnComment: "columnComment";
};
export type CellType = ValuesType<typeof CellType>;
export declare const hasCellType: (value: string) => boolean;
export declare function getShowColumnOrder(show: number, columnOrder: number[]): number[];