- ✅ 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
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
/**
|
|
* Checks if the given code point can start an identifier.
|
|
*
|
|
* @param {number | undefined} code
|
|
* Code point to check.
|
|
* @returns {boolean}
|
|
* Whether `code` can start an identifier.
|
|
*/
|
|
export function start(code: number | undefined): boolean;
|
|
/**
|
|
* Checks if the given code point can continue an identifier.
|
|
*
|
|
* @param {number | undefined} code
|
|
* Code point to check.
|
|
* @param {Options | null | undefined} [options]
|
|
* Configuration (optional).
|
|
* @returns {boolean}
|
|
* Whether `code` can continue an identifier.
|
|
*/
|
|
export function cont(code: number | undefined, options?: Options | null | undefined): boolean;
|
|
/**
|
|
* Checks if the given value is a valid identifier name.
|
|
*
|
|
* @param {string} name
|
|
* Identifier to check.
|
|
* @param {Options | null | undefined} [options]
|
|
* Configuration (optional).
|
|
* @returns {boolean}
|
|
* Whether `name` can be an identifier.
|
|
*/
|
|
export function name(name: string, options?: Options | null | undefined): boolean;
|
|
/**
|
|
* Configuration.
|
|
*/
|
|
export type Options = {
|
|
/**
|
|
* Support JSX identifiers (default: `false`).
|
|
*/
|
|
jsx?: boolean | null | undefined;
|
|
};
|