deleteForm function infrastructure exported ✓ 100.0%
Last updated: 2026-03-01T23:25:47.133Z
Metrics
LOC: 7
Complexity: 1
Params: 1
Coverage: 100.0% (2/2 lines, 1x executed)
Signature
deleteForm(formId: string): : Promise<void>
Summary
Deletes a saved form by ID.
Tags
#@param formId - The unique form identifier
Source Code
export async function deleteForm(formId: string): Promise<void> {
await updateStorageAtomically(
STORAGE_KEYS.SAVED_FORMS,
[] as SavedForm[],
(forms) => forms.filter((f) => f.id !== formId),
);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| updateStorageAtomically | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handle | uses |