MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / createForm

Function createForm

packages/core/src/v3/apiClient/core.ts:162–168  ·  view source on GitHub ↗
(body: T | undefined)

Source from the content-addressed store, hash-verified

160}
161
162const createForm = async <T = Record<string, unknown>>(body: T | undefined): Promise<FormData> => {
163 const form = new FormData();
164 await Promise.all(
165 Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value))
166 );
167 return form;
168};
169
170type ZodFetchResult<T> = {
171 data: T;

Callers 1

Calls 2

addFormValueFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…