(settings: Settings)
| 269 | } |
| 270 | |
| 271 | export const saveSettings = (settings: Settings): void => { |
| 272 | ensureSettingsExists() |
| 273 | const serialized = yaml.dump(toSerializable(settings), { lineWidth: 120 }) |
| 274 | fs.writeFileSync(getSettingsFilePath(), serialized, 'utf-8') |
| 275 | } |
| 276 | |
| 277 | export const getByPath = (settings: unknown, path: string): unknown => { |
| 278 | const tokens = parsePath(path) |
no test coverage detected