- ✅ 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
36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
/// <reference types="node" />
|
|
|
|
/**
|
|
* These definitions were written by BendingBender (https://github.com/BendingBender)
|
|
*/
|
|
|
|
export = crc32;
|
|
|
|
declare function crc32(input: string | Buffer, partialCrc?: Buffer | number): Buffer;
|
|
|
|
declare namespace crc32 {
|
|
/**
|
|
* Convenience method that returns a signed int instead of a `Buffer`.
|
|
*
|
|
* @example
|
|
* import crc32 = require('buffer-crc32');
|
|
*
|
|
* // works with buffers
|
|
* const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
|
|
* crc32.signed(buf); // -> -1805997238
|
|
*/
|
|
function signed(buffer: string | Buffer, partialCrc?: Buffer | number): number;
|
|
|
|
/**
|
|
* Convenience method that returns an unsigned int instead of a `Buffer`.
|
|
*
|
|
* @example
|
|
* import crc32 = require('buffer-crc32');
|
|
*
|
|
* // works with buffers
|
|
* const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]);
|
|
* crc32.unsigned(buf); // -> 2488970058
|
|
*/
|
|
function unsigned(buffer: string | Buffer, partialCrc?: Buffer | number): number;
|
|
}
|