Adjust European short trip heuristic from >3 days to >1 day to correctly detect when user has returned home from European trips. This fixes the April 29-30, 2023 case where the location incorrectly showed "Sankt Georg, Hamburg" instead of "Bristol" when the user was free (no events scheduled) after the foss-north trip ended on April 27. The previous logic required more than 3 days to pass before assuming return home from European countries, but for short European trips by rail/ferry, users typically return within 1-2 days. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
900 B
TypeScript
32 lines
900 B
TypeScript
declare module '@discoveryjs/json-ext' {
|
|
import { Readable } from 'stream';
|
|
|
|
type TReplacer =
|
|
| ((this: any, key: string, value: any) => any)
|
|
| string[]
|
|
| number[]
|
|
| null;
|
|
type TSpace = string | number | null;
|
|
type TChunk = string | Buffer | Uint8Array;
|
|
|
|
export function parseChunked(input: Readable): Promise<any>;
|
|
export function parseChunked(input: () => (Iterable<TChunk> | AsyncIterable<TChunk>)): Promise<any>;
|
|
|
|
export function stringifyStream(value: any, replacer?: TReplacer, space?: TSpace): Readable;
|
|
|
|
export function stringifyInfo(
|
|
value: any,
|
|
replacer?: TReplacer,
|
|
space?: TSpace,
|
|
options?: {
|
|
async?: boolean;
|
|
continueOnCircular?: boolean;
|
|
}
|
|
): {
|
|
minLength: number;
|
|
circular: any[];
|
|
duplicate: any[];
|
|
async: any[];
|
|
};
|
|
}
|