(value: string)
| 334 | } |
| 335 | |
| 336 | function parseNavigationPlace(value: string): NavigationPlace { |
| 337 | const place = value.toLowerCase(); |
| 338 | if (listNavigationPlaces().some((candidate) => candidate.name === place)) { |
| 339 | return place as NavigationPlace; |
| 340 | } |
| 341 | throw new Error(`Unknown Field Theory place: ${value}`); |
| 342 | } |
| 343 | |
| 344 | // ── Update checker ──────────────────────────────────────────────────────── |
| 345 |
no test coverage detected