UNPKG

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.

30 lines (28 loc) 923 B
import { IsUnknown } from "../types.cjs"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region src/helpers/validators/index.d.ts /** * 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 */ type ResolveSchema<TInput, TFallback = TInput, TUnknownFallback = TFallback> = IsUnknown<TInput> extends true ? TUnknownFallback : TInput extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<TInput> : TFallback; /** * A valid input schema for an event's `data`. * * @public */ type ValidSchemaInput = StandardSchemaV1; /** * A valid output schema. * * @public */ type ValidSchemaOutput = StandardSchemaV1; //#endregion export { ResolveSchema, ValidSchemaInput, ValidSchemaOutput }; //# sourceMappingURL=index.d.cts.map