Vite + TypeScript PWA that mirrors the Android app's core features: - Pre-processed shelter data (build-time UTM33N→WGS84 conversion) - Leaflet map with shelter markers, user location, and offline tiles - Canvas compass arrow (ported from DirectionArrowView.kt) - IndexedDB shelter cache with 7-day staleness check - Service worker with CacheFirst tiles and precached app shell - i18n for en, nb, nn (ported from Android strings.xml) - iOS/Android compass handling with low-pass filter - Respects user map interaction (no auto-snap on pan/zoom) - Build revision cache-breaker for reliable SW updates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.6 KiB
TypeScript
40 lines
1.6 KiB
TypeScript
export declare abstract class _CodeOrName {
|
|
abstract readonly str: string;
|
|
abstract readonly names: UsedNames;
|
|
abstract toString(): string;
|
|
abstract emptyStr(): boolean;
|
|
}
|
|
export declare const IDENTIFIER: RegExp;
|
|
export declare class Name extends _CodeOrName {
|
|
readonly str: string;
|
|
constructor(s: string);
|
|
toString(): string;
|
|
emptyStr(): boolean;
|
|
get names(): UsedNames;
|
|
}
|
|
export declare class _Code extends _CodeOrName {
|
|
readonly _items: readonly CodeItem[];
|
|
private _str?;
|
|
private _names?;
|
|
constructor(code: string | readonly CodeItem[]);
|
|
toString(): string;
|
|
emptyStr(): boolean;
|
|
get str(): string;
|
|
get names(): UsedNames;
|
|
}
|
|
export type CodeItem = Name | string | number | boolean | null;
|
|
export type UsedNames = Record<string, number | undefined>;
|
|
export type Code = _Code | Name;
|
|
export type SafeExpr = Code | number | boolean | null;
|
|
export declare const nil: _Code;
|
|
type CodeArg = SafeExpr | string | undefined;
|
|
export declare function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code;
|
|
export declare function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code;
|
|
export declare function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void;
|
|
export declare function strConcat(c1: Code, c2: Code): Code;
|
|
export declare function stringify(x: unknown): Code;
|
|
export declare function safeStringify(x: unknown): string;
|
|
export declare function getProperty(key: Code | string | number): Code;
|
|
export declare function getEsmExportName(key: Code | string | number): Code;
|
|
export declare function regexpCode(rx: RegExp): Code;
|
|
export {};
|