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

Function zodTask

experiments/with-separate-zod-task.ts:270–279  ·  view source on GitHub ↗
(
  options: ZodTaskOptions<TOutput, TContext, TIdentifier, TSchema>
)

Source from the content-addressed store, hash-verified

268} & TaskOptions<z.input<TSchema>, z.output<TSchema>, TOutput, TContext, TIdentifier>;
269
270export function zodTask<
271 TOutput,
272 TContext extends object,
273 TIdentifier extends string,
274 TSchema extends z.ZodTypeAny = z.ZodTypeAny,
275>(
276 options: ZodTaskOptions<TOutput, TContext, TIdentifier, TSchema>
277): Task<z.input<TSchema>, z.output<TSchema>, TOutput, TIdentifier> {
278 return createTask<z.input<TSchema>, z.output<TSchema>, TOutput, TContext, TIdentifier>(options);
279}
280
281export type ValibotTaskOptions<
282 TOutput,

Callers

nothing calls this directly

Calls 1

createTaskFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…