- ✅ 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
28 lines
1.2 KiB
JavaScript
28 lines
1.2 KiB
JavaScript
// Register the JSX namespace on `h`.
|
|
/**
|
|
* @typedef {import('./jsx-classic.js').Element} h.JSX.Element
|
|
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
|
|
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
|
|
* @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
|
|
*/
|
|
|
|
// Register the JSX namespace on `s`.
|
|
/**
|
|
* @typedef {import('./jsx-classic.js').Element} s.JSX.Element
|
|
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
|
|
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
|
|
* @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
|
|
*/
|
|
|
|
import {html, svg} from 'property-information'
|
|
import {createH} from './create-h.js'
|
|
import {svgCaseSensitiveTagNames} from './svg-case-sensitive-tag-names.js'
|
|
|
|
// Note: this explicit type is needed, otherwise TS creates broken types.
|
|
/** @type {ReturnType<createH>} */
|
|
export const h = createH(html, 'div')
|
|
|
|
// Note: this explicit type is needed, otherwise TS creates broken types.
|
|
/** @type {ReturnType<createH>} */
|
|
export const s = createH(svg, 'g', svgCaseSensitiveTagNames)
|