inngest
Version:
Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.
25 lines • 770 B
TypeScript
import { type IsUnknown } from "../types.js";
import type * as z from "./zod";
/**
* Given an input value, infer the output type.
*
* This is a helper type to infer the output type of schemas, ensuring we can
* support many validation libraries here without having to write custom
* validators for each.
*
* @public
*/
export type ResolveSchema<TInput, TFallback = TInput, TUnknownFallback = TFallback> = IsUnknown<TInput> extends true ? TUnknownFallback : TInput extends z.ZodTypeAny ? z.infer<TInput> : TFallback;
/**
* A valid input schema for an event's `data`.
*
* @public
*/
export type ValidSchemaInput = z.ValidZodValue;
/**
* A valid output schema.
*
* @public
*/
export type ValidSchemaOutput = z.ZodTypeAny;
//# sourceMappingURL=index.d.ts.map