- ✅ 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
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
/**
|
|
* Get the positional info of `node`.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* Node.
|
|
* @returns {Position | undefined}
|
|
* Position.
|
|
*/
|
|
export function position(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Position | undefined
|
|
/**
|
|
* Get the point info of `node` at a bound side.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* @returns {Point | undefined}
|
|
*/
|
|
export function pointEnd(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Point | undefined
|
|
/**
|
|
* Get the point info of `node` at a bound side.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* @returns {Point | undefined}
|
|
*/
|
|
export function pointStart(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Point | undefined
|
|
export type Node = import('unist').Node
|
|
export type Point = import('unist').Point
|
|
export type Position = import('unist').Position
|
|
export type NodeLike = {
|
|
type: string
|
|
position?: PositionLike | null | undefined
|
|
}
|
|
export type PositionLike = {
|
|
start?: PointLike | null | undefined
|
|
end?: PointLike | null | undefined
|
|
}
|
|
export type PointLike = {
|
|
line?: number | null | undefined
|
|
column?: number | null | undefined
|
|
offset?: number | null | undefined
|
|
}
|