Files
pad/web/src/app.d.ts
T
xarmian db37dc2bcd fix(web): the split pane's Back returns to the previous item at the position it was read at (BUG-2182) (#1473)
* test(BUG-2182): reproduce pane Back returning to the top of the previous item

* fix(BUG-2182): the split pane's Back returns to the previous item at the position it was read at

* test(BUG-2182): the drill-after-Back race with a scrolled A, the case the saved position turns into a shallow entry

* test(BUG-2182): drop the scrolled race variant; the race it copies is flaky on main (filed separately)
2026-09-23 17:15:46 -04:00

24 lines
720 B
TypeScript

// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// Split-pane mini-browser depth/ownership stamp (PLAN-2154 /
// TASK-2157). Carried in SvelteKit `page.state` (NOT raw
// `history.state`) so it follows opaque Back/Forward, survives
// `history.go`, and reconstructs on cold-load. See
// `$lib/collections/paneController.ts`.
interface PageState {
paneDepth?: number;
paneOwned?: boolean;
/** Pane scroll offset saved when drilling forward from this entry (BUG-2182). */
paneScrollTop?: number;
}
// interface Platform {}
}
}
export {};