- ✅ 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.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import BrowserWindow from '../window/BrowserWindow.js';
|
|
import { URL } from 'url';
|
|
import IModule from './types/IModule.js';
|
|
interface IUnresolvedModuleInit {
|
|
window: BrowserWindow;
|
|
url: URL;
|
|
}
|
|
/**
|
|
* CSS module.
|
|
*/
|
|
export default class UnresolvedModule implements IModule {
|
|
#private;
|
|
readonly url: URL;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param init Initialization options.
|
|
*/
|
|
constructor(init: IUnresolvedModuleInit);
|
|
/**
|
|
* Compiles and evaluates the module.
|
|
*
|
|
* @returns Module exports.
|
|
*/
|
|
evaluate(): Promise<any>;
|
|
/**
|
|
* Compiles and preloads the module and its imports.
|
|
*
|
|
* @returns Promise.
|
|
*/
|
|
preload(): Promise<void>;
|
|
/**
|
|
* Add a hook to be called when the module is resolved.
|
|
*
|
|
* @param resolve Resolve.
|
|
* @param reject Reject.
|
|
*/
|
|
addResolveListener(resolve: (value: unknown) => void, reject: (error: Error) => void): void;
|
|
/**
|
|
* Resolves the module.
|
|
*
|
|
* @param [error] Error.
|
|
*/
|
|
resolve(error?: Error): void;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=UnresolvedModule.d.ts.map
|