codigo0/node_modules/happy-dom/lib/nodes/element/HTMLCollection.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

65 lines
1.7 KiB
TypeScript

import * as PropertySymbol from '../../PropertySymbol.js';
import Element from './Element.js';
/**
* HTMLCollection.
*
* We are extending Array here to improve performance.
* However, we should not expose Array methods to the outside.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection
*/
export default class HTMLCollection<T extends Element, NamedItem = T> {
[index: number]: T;
protected [PropertySymbol.query]: () => T[];
/**
* Constructor.
*
* @param illegalConstructorSymbol Illegal constructor symbol.
* @param query Query function.
*/
constructor(illegalConstructorSymbol: symbol, query: () => T[]);
/**
* Returns length.
*
* @returns Length.
*/
get length(): number;
/**
* Returns `Symbol.toStringTag`.
*
* @returns `Symbol.toStringTag`.
*/
get [Symbol.toStringTag](): string;
/**
* Returns `[object HTMLCollection]`.
*
* @returns `[object HTMLCollection]`.
*/
toLocaleString(): string;
/**
* Returns `[object HTMLCollection]`.
*
* @returns `[object HTMLCollection]`.
*/
toString(): string;
/**
* Returns item by index.
*
* @param index Index.
*/
item(index: number): T | null;
/**
* Returns an iterator, allowing you to go through all values of the key/value pairs contained in this object.
*
* @returns Iterator.
*/
[Symbol.iterator](): ArrayIterator<T>;
/**
* Returns named item.
*
* @param name Name.
* @returns Node.
*/
namedItem(name: string): NamedItem | null;
}
//# sourceMappingURL=HTMLCollection.d.ts.map