- ✅ 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
56 lines
1.7 KiB
TypeScript
56 lines
1.7 KiB
TypeScript
import type {Root} from 'mdast'
|
|
import type {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
|
|
import type {Extension as MicromarkExtension} from 'micromark-util-types'
|
|
import type {Plugin} from 'unified'
|
|
import type {Options} from './lib/index.js'
|
|
|
|
export type {Options} from './lib/index.js'
|
|
|
|
/**
|
|
* Add support for parsing from markdown.
|
|
*
|
|
* @this
|
|
* Unified processor.
|
|
* @param
|
|
* Configuration (optional).
|
|
* @returns
|
|
* Nothing.
|
|
*/
|
|
declare const remarkParse: Plugin<
|
|
[(Readonly<Options> | null | undefined)?],
|
|
string,
|
|
Root
|
|
>
|
|
export default remarkParse
|
|
|
|
// Add custom settings supported when `remark-parse` is added.
|
|
declare module 'unified' {
|
|
interface Settings extends Options {}
|
|
|
|
interface Data {
|
|
/**
|
|
* List of `micromark` extensions to use.
|
|
*
|
|
* This type is registered by `remark-parse`.
|
|
* Values can be registered by remark plugins that extend `micromark` and
|
|
* `mdast-util-from-markdown`.
|
|
* See {@link MicromarkExtension | `Extension`} from
|
|
* {@link https://github.com/micromark/micromark/tree/main/packages/micromark-util-types | `micromark-util-types`}.
|
|
*/
|
|
micromarkExtensions?: MicromarkExtension[]
|
|
|
|
/**
|
|
* List of `mdast-util-from-markdown` extensions to use.
|
|
*
|
|
* This type is registered by `remark-parse`.
|
|
* Values can be registered by remark plugins that extend `micromark` and
|
|
* `mdast-util-from-markdown`.
|
|
* See {@link FromMarkdownExtension | `Extension`} from
|
|
* {@link https://github.com/syntax-tree/mdast-util-from-markdown#extension | `mdast-util-from-markdown`}.
|
|
*/
|
|
fromMarkdownExtensions?: Array<
|
|
FromMarkdownExtension[] | FromMarkdownExtension
|
|
>
|
|
}
|
|
}
|