17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.decodeConfig = decodeConfig;
|
|
/**
|
|
Decode changes from a JS API to a config object
|
|
|
|
@param {Config} config
|
|
@param {Object} result: result from API
|
|
@return {Config}
|
|
*/
|
|
function decodeConfig(config, result) {
|
|
const values = result.values;
|
|
delete values.generator;
|
|
delete values.output;
|
|
return config.updateValues(values);
|
|
}
|