scene: PlaceListing declared before its use
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2ae1d2bead
commit
7bd9e4834a
1 changed files with 7 additions and 7 deletions
|
|
@ -198,6 +198,13 @@ async function getJson(url: string, init?: RequestInit): Promise<unknown> {
|
|||
return res.json();
|
||||
}
|
||||
|
||||
/** A baked place as the Place submenu lists it: the manifest's own name and zone (local time on its card). */
|
||||
export interface PlaceListing {
|
||||
id: string;
|
||||
name: string;
|
||||
tz: string;
|
||||
}
|
||||
|
||||
const memo = new Map<string, Promise<RidgeManifest>>();
|
||||
const indexMemo = new Map<string, Promise<RidgeIndex>>();
|
||||
const listMemo = new Map<string, Promise<PlaceListing[]>>();
|
||||
|
|
@ -237,13 +244,6 @@ export function loadManifest(baseUrl: string, placeId?: string): Promise<RidgeMa
|
|||
return p;
|
||||
}
|
||||
|
||||
/** A baked place as the Place submenu lists it: the manifest's own name and zone (local time on its card). */
|
||||
export interface PlaceListing {
|
||||
id: string;
|
||||
name: string;
|
||||
tz: string;
|
||||
}
|
||||
|
||||
/** The baked places in the index's order, named by their manifests; a place whose manifest fails to load is left out. Memoised per index URL; a failure is not remembered. */
|
||||
export function listPlaces(baseUrl: string): Promise<PlaceListing[]> {
|
||||
const root = `${baseUrl}public/ridge/`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue