(config: Configuration)
| 136 | * @returns {Partial<Options>} - The options derived from the configuration. |
| 137 | */ |
| 138 | const getOptionsFromConfig = (config: Configuration): Options => { |
| 139 | const { validations, ...directlyPassableEntries } = config |
| 140 | |
| 141 | return { |
| 142 | ...directlyPassableEntries, |
| 143 | validate: validations.enabled as EnabledValidations, |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Type-checks and adds the defaults for options the user has not specified. |
no outgoing calls
no test coverage detected
searching dependent graphs…