- ✅ 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
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import * as PropertySymbol from '../PropertySymbol.js';
|
|
import Node from '../nodes/node/Node.js';
|
|
import BrowserWindow from '../window/BrowserWindow.js';
|
|
import IMutationObserverInit from './IMutationObserverInit.js';
|
|
import MutationRecord from './MutationRecord.js';
|
|
/**
|
|
* The MutationObserver interface provides the ability to watch for changes being made to the DOM tree.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
|
|
*/
|
|
export default class MutationObserver {
|
|
#private;
|
|
protected [PropertySymbol.window]: BrowserWindow;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param callback Callback.
|
|
*/
|
|
constructor(callback: (records: MutationRecord[], observer: MutationObserver) => void);
|
|
/**
|
|
* Starts observing.
|
|
*
|
|
* @param target Target.
|
|
* @param options Options.
|
|
*/
|
|
observe(target: Node, options: IMutationObserverInit): void;
|
|
/**
|
|
* Disconnects.
|
|
*/
|
|
disconnect(): void;
|
|
/**
|
|
* Returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
|
|
*
|
|
* @returns Records.
|
|
*/
|
|
takeRecords(): MutationRecord[];
|
|
/**
|
|
*
|
|
*/
|
|
[PropertySymbol.destroy](): void;
|
|
}
|
|
//# sourceMappingURL=MutationObserver.d.ts.map
|