MCPcopy Create free account
hub / github.com/Effect-TS/effect / decodeFormData

Function decodeFormData

packages/effect/src/SchemaGetter.ts:1675–1677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1673 * @since 4.0.0
1674 */
1675export function decodeFormData(): Getter<Schema.TreeRecord<string | Blob>, FormData> {
1676 return transform((input) => makeTreeRecord(Array.from(input.entries())))
1677}
1678
1679const collectFormDataEntries = collectBracketPathEntries((value): value is string | Blob =>
1680 typeof value === "string" || (typeof Blob !== "undefined" && value instanceof Blob)

Callers

nothing calls this directly

Calls 2

makeTreeRecordFunction · 0.85
transformFunction · 0.70

Tested by

no test coverage detected