- ✅ 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
82 lines
3.6 KiB
TypeScript
82 lines
3.6 KiB
TypeScript
import HTMLCollection from '../element/HTMLCollection.js';
|
|
import Element from '../element/Element.js';
|
|
import Node from '../node/Node.js';
|
|
import NodeList from '../node/NodeList.js';
|
|
import IHTMLElementTagNameMap from '../../config/IHTMLElementTagNameMap.js';
|
|
import ISVGElementTagNameMap from '../../config/ISVGElementTagNameMap.js';
|
|
export default interface IParentNode extends Node {
|
|
readonly childElementCount: number;
|
|
readonly firstElementChild: Element;
|
|
readonly lastElementChild: Element;
|
|
readonly children: HTMLCollection<Element>;
|
|
/**
|
|
* Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
|
|
*
|
|
* @param nodes List of Node or DOMString.
|
|
*/
|
|
append(...nodes: (Node | string)[]): void;
|
|
/**
|
|
* Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
|
|
*
|
|
* @param nodes List of Node or DOMString.
|
|
*/
|
|
prepend(...nodes: (Node | string)[]): void;
|
|
/**
|
|
* Query CSS Selector to find matching node.
|
|
*
|
|
* @param selector CSS selector.
|
|
* @returns Matching element.
|
|
*/
|
|
querySelector<K extends keyof IHTMLElementTagNameMap>(selector: K): IHTMLElementTagNameMap[K] | null;
|
|
querySelector<K extends keyof ISVGElementTagNameMap>(selector: K): ISVGElementTagNameMap[K] | null;
|
|
querySelector(selector: string): Element | null;
|
|
/**
|
|
* Query CSS selector to find matching nodes.
|
|
*
|
|
* @param selector CSS selector.
|
|
* @returns Matching elements.
|
|
*/
|
|
querySelectorAll<K extends keyof IHTMLElementTagNameMap>(selector: K): NodeList<IHTMLElementTagNameMap[K]>;
|
|
querySelectorAll<K extends keyof ISVGElementTagNameMap>(selector: K): NodeList<ISVGElementTagNameMap[K]>;
|
|
querySelectorAll(selector: string): NodeList<Element>;
|
|
/**
|
|
* Query CSS selector to find matching nodes.
|
|
*
|
|
* @param selector CSS selector.
|
|
* @returns Matching elements.
|
|
*/
|
|
querySelectorAll(selector: string): NodeList<Element>;
|
|
/**
|
|
* Returns an elements by class name.
|
|
*
|
|
* @param className Tag name.
|
|
* @returns Matching element.
|
|
*/
|
|
getElementsByClassName(className: string): HTMLCollection<Element>;
|
|
/**
|
|
* Returns an elements by tag name.
|
|
*
|
|
* @param tagName Tag name.
|
|
* @returns Matching element.
|
|
*/
|
|
getElementsByTagName<K extends keyof IHTMLElementTagNameMap>(tagName: K): HTMLCollection<IHTMLElementTagNameMap[K]>;
|
|
getElementsByTagName<K extends keyof ISVGElementTagNameMap>(tagName: K): HTMLCollection<ISVGElementTagNameMap[K]>;
|
|
getElementsByTagName(tagName: string): HTMLCollection<Element>;
|
|
/**
|
|
* Returns an elements by tag name and namespace.
|
|
*
|
|
* @param namespaceURI Namespace URI.
|
|
* @param tagName Tag name.
|
|
* @returns Matching element.
|
|
*/
|
|
getElementsByTagNameNS<K extends keyof IHTMLElementTagNameMap>(namespaceURI: 'http://www.w3.org/1999/xhtml', tagName: K): HTMLCollection<IHTMLElementTagNameMap[K]>;
|
|
getElementsByTagNameNS<K extends keyof ISVGElementTagNameMap>(namespaceURI: 'http://www.w3.org/2000/svg', tagName: K): HTMLCollection<ISVGElementTagNameMap[K]>;
|
|
getElementsByTagNameNS(namespaceURI: string, tagName: string): HTMLCollection<Element>;
|
|
/**
|
|
* Replaces the existing children of a node with a specified new set of children.
|
|
*
|
|
* @param nodes List of Node or DOMString.
|
|
*/
|
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
}
|
|
//# sourceMappingURL=IParentNode.d.ts.map
|