prisma-json-types-generator
Version:
Changes JsonValues to your custom typescript type
16 lines • 637 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseConfig = void 0;
function parseConfig(config) {
return {
namespace: config.namespace ? String(config.namespace) : 'PrismaJson',
// This gets overwritten in the generator
clientOutput: config.clientOutput ? String(config.clientOutput) : undefined,
useType: config.useType ? String(config.useType) : undefined,
allowAny: config.allowAny
? String(config.allowAny).toLowerCase().trim() === 'true'
: false
};
}
exports.parseConfig = parseConfig;
//# sourceMappingURL=config.js.map