codigo0/node_modules/happy-dom/lib/form-data/FormData.d.ts
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  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
2026-01-25 21:09:47 +01:00

98 lines
3 KiB
TypeScript

import Blob from '../file/Blob.js';
import * as PropertySymbol from '../PropertySymbol.js';
import File from '../file/File.js';
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement.js';
import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement.js';
import BrowserWindow from '../window/BrowserWindow.js';
import HTMLButtonElement from '../nodes/html-button-element/HTMLButtonElement.js';
/**
* FormData.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/FormData
*/
export default class FormData implements Iterable<[string, string | File]> {
#private;
protected [PropertySymbol.window]: BrowserWindow;
/**
* Constructor.
*
* @param [form] Form.
* @param [submitter] The element that triggered the submission if this came from a form submit.
*/
constructor(form?: HTMLFormElement, submitter?: HTMLInputElement | HTMLButtonElement);
/**
* For each.
*
* @param callback Callback.
* @param thisArg thisArg.
*/
forEach(callback: (value: string | File, key: string, parent: this) => void, thisArg?: any): void;
/**
* Appends a new value onto an existing key.
*
* @param name Name.
* @param value Value.
* @param [filename] Filename.
*/
append(name: string, value: string | Blob | File, filename?: string): void;
/**
* Removes a value.
*
* @param name Name.
*/
delete(name: string): void;
/**
* Returns value.
*
* @param name Name.
* @returns Value.
*/
get(name: string): string | File | null;
/**
* Returns all values associated with the given name.
*
* @param name Name.
* @returns Values.
*/
getAll(name: string): Array<string | File>;
/**
* Returns whether a FormData object contains a certain key.
*
* @param name Name.
* @returns "true" if the FormData object contains the key.
*/
has(name: string): boolean;
/**
* Sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
*
* @param name Name.
* @param value Value.
* @param [filename] Filename.
*/
set(name: string, value: string | Blob | File, filename?: string): void;
/**
* Returns an iterator, allowing you to go through all keys of the key/value pairs contained in this object.
*
* @returns Iterator.
*/
keys(): ArrayIterator<string>;
/**
* Returns an iterator, allowing you to go through all values of the key/value pairs contained in this object.
*
* @returns Iterator.
*/
values(): ArrayIterator<string | File>;
/**
* Returns an iterator, allowing you to go through all key/value pairs contained in this object.
*
* @returns Iterator.
*/
entries(): ArrayIterator<[string, string | File]>;
/**
* Iterator.
*
* @returns Iterator.
*/
[Symbol.iterator](): ArrayIterator<[string, string | File]>;
}
//# sourceMappingURL=FormData.d.ts.map