- ✅ 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
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
import { TlsOptions } from 'cloudflare:sockets';
|
|
import { EventEmitter } from 'events';
|
|
/**
|
|
* Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
|
|
*/
|
|
export declare class CloudflareSocket extends EventEmitter {
|
|
readonly ssl: boolean;
|
|
writable: boolean;
|
|
destroyed: boolean;
|
|
private _upgrading;
|
|
private _upgraded;
|
|
private _cfSocket;
|
|
private _cfWriter;
|
|
private _cfReader;
|
|
constructor(ssl: boolean);
|
|
setNoDelay(): this;
|
|
setKeepAlive(): this;
|
|
ref(): this;
|
|
unref(): this;
|
|
connect(port: number, host: string, connectListener?: (...args: unknown[]) => void): Promise<this | undefined>;
|
|
_listen(): Promise<void>;
|
|
_listenOnce(): Promise<void>;
|
|
write(data: Uint8Array | string, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): true | void;
|
|
end(data?: Buffer, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): this;
|
|
destroy(reason: string): this;
|
|
startTls(options: TlsOptions): void;
|
|
_addClosedHandler(): void;
|
|
}
|