codigo0/node_modules/happy-dom/lib/history/History.d.ts
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

82 lines
2.3 KiB
TypeScript

import IBrowserFrame from '../browser/types/IBrowserFrame.js';
import HistoryScrollRestorationEnum from './HistoryScrollRestorationEnum.js';
import * as PropertySymbol from '../PropertySymbol.js';
import BrowserWindow from '../window/BrowserWindow.js';
/**
* History API.
*
* Reference:
* https://developer.mozilla.org/en-US/docs/Web/API/History.
*/
export default class History {
#private;
/**
* Constructor.
*
* @param browserFrame Browser frame.
* @param window Owner window.
*/
constructor(browserFrame: IBrowserFrame, window: BrowserWindow);
/**
* Returns the history length.
*
* @returns History length.
*/
get length(): number;
/**
* Returns an any value representing the state at the top of the history stack. This is a way to look at the state without having to wait for a popstate event.
*
* @returns State.
*/
get state(): object | null;
/**
* Returns scroll restoration.
*
* @returns Sroll restoration.
*/
get scrollRestoration(): HistoryScrollRestorationEnum;
/**
* Sets scroll restoration.
*
* @param scrollRestoration Sroll restoration.
*/
set scrollRestoration(scrollRestoration: HistoryScrollRestorationEnum);
/**
* Goes to the previous page in session history.
*/
back(): void;
/**
* Goes to the next page in session history.
*/
forward(): void;
/**
* Load a specific page from the session history.
*
* @param delta Delta.
* @param _delta
*/
go(delta: number): void;
/**
* Pushes the given data onto the session history stack.
*
* @param state State.
* @param _unused Unused.
* @param [url] URL.
*/
pushState(state: any, _unused: any, url?: string | URL): void;
/**
* This method modifies the current history entry, replacing it with a new state.
*
* @param state State.
* @param _unused Unused.
* @param [url] URL.
*/
replaceState(state: any, _unused: any, url?: string | URL): void;
/**
* Destroys the history.
*
* This will make sure that the History API can't access page data from the next history item.
*/
[PropertySymbol.destroy](): void;
}
//# sourceMappingURL=History.d.ts.map