- ✅ 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
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
/**
|
|
* Apply syntax highlighting.
|
|
*
|
|
* @param {Readonly<Options> | null | undefined} [options]
|
|
* Configuration (optional).
|
|
* @returns
|
|
* Transform.
|
|
*/
|
|
export default function rehypeHighlight(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => undefined;
|
|
/**
|
|
* Configuration (optional).
|
|
*/
|
|
export type Options = {
|
|
/**
|
|
* Register more aliases (optional);
|
|
* passed to `lowlight.registerAlias`.
|
|
*/
|
|
aliases?: Readonly<Record<string, ReadonlyArray<string> | string>> | null | undefined;
|
|
/**
|
|
* Highlight code without language classes by guessing its programming
|
|
* language (default: `false`).
|
|
*/
|
|
detect?: boolean | null | undefined;
|
|
/**
|
|
* Register languages (default: `common`);
|
|
* passed to `lowlight.register`.
|
|
*/
|
|
languages?: Readonly<Record<string, LanguageFn>> | null | undefined;
|
|
/**
|
|
* List of language names to not highlight (optional);
|
|
* note you can also add `no-highlight` classes.
|
|
*/
|
|
plainText?: ReadonlyArray<string> | null | undefined;
|
|
/**
|
|
* Class prefix (default: `'hljs-'`).
|
|
*/
|
|
prefix?: string | null | undefined;
|
|
/**
|
|
* Names of languages to check when detecting (default: all registered
|
|
* languages).
|
|
*/
|
|
subset?: ReadonlyArray<string> | null | undefined;
|
|
};
|
|
import type { Root } from 'hast';
|
|
import type { VFile } from 'vfile';
|
|
import type { LanguageFn } from 'lowlight';
|
|
//# sourceMappingURL=index.d.ts.map
|