MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isFormDataPrimitive

Function isFormDataPrimitive

packages/plugins/openapi/src/sdk/invoke.ts:709–714  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

707};
708
709const isFormDataPrimitive = (value: unknown): boolean =>
710 typeof value === "string" ||
711 typeof value === "number" ||
712 typeof value === "boolean" ||
713 value instanceof Blob ||
714 (typeof File !== "undefined" && value instanceof File);
715
716type FormDataCoercion =
717 | { readonly ok: true; readonly record: FormDataRecord }

Callers 1

coerceFormDataRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected