import { camelCase , upperFirst } from 'lodash' ; const DEFAULT_OPTIONS = { writeHeader : true , camelCase : false } ; export type OptionValues = { camelCase ? : boolean ; writeHeader ? : boolean ; } ; export default class Options { public options : OptionValues ; constructor ( options = { } ) { this . options = { ... DEFAULT_OPTIONS , ... options } ; } transformTypeName ( typename ) { return this . options . camelCase ? upperFirst ( camelCase ( typename ) ) : typename ; } transformColumnName ( columnName ) { return this . options . camelCase ? camelCase ( columnName ) : columnName ; } }