codigo0/node_modules/happy-dom/lib/range/RangeUtility.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

47 lines
1.5 KiB
TypeScript

import Node from '../nodes/node/Node.js';
import Range from './Range.js';
import IRangeBoundaryPoint from './IRangeBoundaryPoint.js';
/**
* Range utility.
*
* Based on:
* https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/range/boundary-point.js.
*/
export default class RangeUtility {
/**
* Compares boundary points.
*
* Based on logic from:
* https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/range/boundary-point.js
*
* @see https://dom.spec.whatwg.org/#concept-range-bp-after
* @param pointA Point A.
* @param pointB Point B.
* @returns A number, -1, 0, or 1, indicating whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of sourceRange.
*/
static compareBoundaryPointsPosition(pointA: IRangeBoundaryPoint, pointB: IRangeBoundaryPoint): number;
/**
* Validates a boundary point.
*
* @throws DOMException
* @param point Boundary point.
*/
static validateBoundaryPoint(point: IRangeBoundaryPoint): void;
/**
* Returns "true" if contained.
*
* @param node Node.
* @param range Range.
* @returns "true" if contained.
*/
static isContained(node: Node, range: Range): boolean;
/**
* Returns "true" if partially contained.
*
* @param node Node.
* @param range Range.
* @returns "true" if partially contained.
*/
static isPartiallyContained(node: Node, range: Range): boolean;
}
//# sourceMappingURL=RangeUtility.d.ts.map