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>
76 lines
No EOL
2.1 KiB
TypeScript
76 lines
No EOL
2.1 KiB
TypeScript
import { GLOBSTAR } from 'minimatch';
|
|
export type MMPattern = string | RegExp | typeof GLOBSTAR;
|
|
export type PatternList = [p: MMPattern, ...rest: MMPattern[]];
|
|
export type UNCPatternList = [
|
|
p0: '',
|
|
p1: '',
|
|
p2: string,
|
|
p3: string,
|
|
...rest: MMPattern[]
|
|
];
|
|
export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
|
|
export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
|
|
export type GlobList = [p: string, ...rest: string[]];
|
|
/**
|
|
* An immutable-ish view on an array of glob parts and their parsed
|
|
* results
|
|
*/
|
|
export declare class Pattern {
|
|
#private;
|
|
readonly length: number;
|
|
constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
|
|
/**
|
|
* The first entry in the parsed list of patterns
|
|
*/
|
|
pattern(): MMPattern;
|
|
/**
|
|
* true of if pattern() returns a string
|
|
*/
|
|
isString(): boolean;
|
|
/**
|
|
* true of if pattern() returns GLOBSTAR
|
|
*/
|
|
isGlobstar(): boolean;
|
|
/**
|
|
* true if pattern() returns a regexp
|
|
*/
|
|
isRegExp(): boolean;
|
|
/**
|
|
* The /-joined set of glob parts that make up this pattern
|
|
*/
|
|
globString(): string;
|
|
/**
|
|
* true if there are more pattern parts after this one
|
|
*/
|
|
hasMore(): boolean;
|
|
/**
|
|
* The rest of the pattern after this part, or null if this is the end
|
|
*/
|
|
rest(): Pattern | null;
|
|
/**
|
|
* true if the pattern represents a //unc/path/ on windows
|
|
*/
|
|
isUNC(): boolean;
|
|
/**
|
|
* True if the pattern starts with a drive letter on Windows
|
|
*/
|
|
isDrive(): boolean;
|
|
/**
|
|
* True if the pattern is rooted on an absolute path
|
|
*/
|
|
isAbsolute(): boolean;
|
|
/**
|
|
* consume the root of the pattern, and return it
|
|
*/
|
|
root(): string;
|
|
/**
|
|
* Check to see if the current globstar pattern is allowed to follow
|
|
* a symbolic link.
|
|
*/
|
|
checkFollowGlobstar(): boolean;
|
|
/**
|
|
* Mark that the current globstar pattern is following a symbolic link
|
|
*/
|
|
markFollowGlobstar(): boolean;
|
|
}
|
|
//# sourceMappingURL=pattern.d.ts.map
|