(config, schemaPath, value, index)
| 645 | * @returns {LocalProblem | null} problem or null for success |
| 646 | */ |
| 647 | const setValue = (config, schemaPath, value, index) => { |
| 648 | const { problem, object, property } = getObjectAndProperty( |
| 649 | config, |
| 650 | schemaPath, |
| 651 | index |
| 652 | ); |
| 653 | if (problem) return problem; |
| 654 | /** @type {ObjectConfiguration} */ |
| 655 | (object)[/** @type {Property} */ (property)] = value; |
| 656 | return null; |
| 657 | }; |
| 658 | |
| 659 | /** |
| 660 | * Process argument config. |
no test coverage detected