- ✅ 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
23 lines
702 B
TypeScript
23 lines
702 B
TypeScript
/**
|
|
* @name isLastDayOfMonth
|
|
* @category Month Helpers
|
|
* @summary Is the given date the last day of a month?
|
|
*
|
|
* @description
|
|
* Is the given date the last day of a month?
|
|
*
|
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
*
|
|
* @param date - The date to check
|
|
|
|
* @returns The date is the last day of a month
|
|
*
|
|
* @example
|
|
* // Is 28 February 2014 the last day of a month?
|
|
* const result = isLastDayOfMonth(new Date(2014, 1, 28))
|
|
* //=> true
|
|
*/
|
|
export declare function isLastDayOfMonth<DateType extends Date>(
|
|
date: DateType | number | string,
|
|
): boolean;
|