- ✅ 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
55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import CharacterData from '../character-data/CharacterData.js';
|
|
import HTMLTextAreaElement from '../html-text-area-element/HTMLTextAreaElement.js';
|
|
import NodeTypeEnum from '../node/NodeTypeEnum.js';
|
|
import HTMLStyleElement from '../html-style-element/HTMLStyleElement.js';
|
|
/**
|
|
* Text node.
|
|
*/
|
|
export default class Text extends CharacterData {
|
|
cloneNode: (deep?: boolean) => Text;
|
|
[PropertySymbol.nodeType]: NodeTypeEnum;
|
|
[PropertySymbol.textAreaNode]: HTMLTextAreaElement | null;
|
|
[PropertySymbol.styleNode]: HTMLStyleElement | null;
|
|
/**
|
|
* Node name.
|
|
*
|
|
* @returns Node name.
|
|
*/
|
|
get nodeName(): string;
|
|
/**
|
|
* @override
|
|
*/
|
|
get data(): string;
|
|
/**
|
|
* @override
|
|
*/
|
|
set data(data: string);
|
|
/**
|
|
* Breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
|
|
*
|
|
* @see https://dom.spec.whatwg.org/#dom-text-splittext
|
|
* @param offset Offset.
|
|
* @returns New text node.
|
|
*/
|
|
splitText(offset: number): Text;
|
|
/**
|
|
* Converts to string.
|
|
*
|
|
* @returns String.
|
|
*/
|
|
toString(): string;
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.cloneNode](deep?: boolean): Text;
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.connectedToNode](): void;
|
|
/**
|
|
* @override
|
|
*/
|
|
[PropertySymbol.disconnectedFromNode](): void;
|
|
}
|
|
//# sourceMappingURL=Text.d.ts.map
|