mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
fix(atlas): clear the knip findings of the globe Atlas
- The globe's geometry code types against geojson and topojson-specification; both are listed as client dev dependencies now (already installed through @types/topojson-client). - Constants, helpers and types used only inside their own module lose their export. - The GeoJSON types only the classic Atlas map read are removed; the knip baseline follows the lower counts in types.ts and offlineDb.ts.
This commit is contained in:
@@ -39,7 +39,7 @@ type Outcome = 'done' | 'parked' | 'stop';
|
||||
let lastCreatedAt = 0;
|
||||
|
||||
/** Fill `{name}` placeholders of a path from `ids`. */
|
||||
export function fillPath(url: string, ids: Record<string, number>): string {
|
||||
function fillPath(url: string, ids: Record<string, number>): string {
|
||||
return Object.entries(ids).reduce((path, [name, id]) => path.replace(`{${name}}`, String(id)), url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user