handleFormDataGetAll() — astro Function Reference
Architecture documentation for the handleFormDataGetAll() function in server.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8b209b98_2e04_af0e_ef8c_e0c3e52e5c24["handleFormDataGetAll()"] 12df90c3_b0fe_d858_b821_5011b6067fdb["server.ts"] 8b209b98_2e04_af0e_ef8c_e0c3e52e5c24 -->|defined in| 12df90c3_b0fe_d858_b821_5011b6067fdb b164aaea_5db8_98a9_78e8_32d7e3924805["formDataToObject()"] b164aaea_5db8_98a9_78e8_32d7e3924805 -->|calls| 8b209b98_2e04_af0e_ef8c_e0c3e52e5c24 style 8b209b98_2e04_af0e_ef8c_e0c3e52e5c24 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/actions/runtime/server.ts lines 325–334
function handleFormDataGetAll(key: string, formData: FormData, validator: z.$ZodArray) {
const entries = Array.from(formData.getAll(key));
const elementValidator = validator._zod.def.element;
if (elementValidator instanceof z.$ZodNumber) {
return entries.map(Number);
} else if (elementValidator instanceof z.$ZodBoolean) {
return entries.map(Boolean);
}
return entries;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does handleFormDataGetAll() do?
handleFormDataGetAll() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/server.ts.
Where is handleFormDataGetAll() defined?
handleFormDataGetAll() is defined in packages/astro/src/actions/runtime/server.ts at line 325.
What calls handleFormDataGetAll()?
handleFormDataGetAll() is called by 1 function(s): formDataToObject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free