Added generationOption with default value

This commit is contained in:
Paolo Ceschi Berrini 2020-01-14 11:50:46 +01:00
parent fd6fa9f3c5
commit 60651a4727

View File

@ -1,3 +1,5 @@
import { EOL } from "os";
import path = require("path");
// TODO: change name
@ -10,6 +12,7 @@ export default interface IGenerationOptions {
convertCaseFile: "pascal" | "param" | "camel" | "none";
convertCaseEntity: "pascal" | "camel" | "none";
convertCaseProperty: "pascal" | "camel" | "none";
convertEol: string;
propertyVisibility: "public" | "protected" | "private" | "none";
lazy: boolean;
activeRecord: boolean;
@ -29,6 +32,7 @@ export function getDefaultGenerationOptions(): IGenerationOptions {
convertCaseFile: "pascal",
convertCaseEntity: "pascal",
convertCaseProperty: "camel",
convertEol: EOL,
propertyVisibility: "none",
lazy: false,
activeRecord: false,