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.

35 lines (34 loc) 1.3 kB
import { Inngest } from "./Inngest.cjs"; import { SyncAdapterOptions, SyncHandlerOptions } from "./InngestCommHandler.cjs"; //#region src/components/InngestEndpointAdapter.d.ts declare namespace InngestEndpointAdapter { const Tag: "Inngest.EndpointAdapter"; /** * Options passed to the durable endpoint proxy handler factory. */ interface ProxyHandlerOptions { /** * The Inngest client to use for API requests and middleware. */ client: Inngest.Like; } type Fn = (options: SyncHandlerOptions) => any; type ProxyFn = (options: ProxyHandlerOptions) => any; interface Like extends Fn { readonly [Symbol.toStringTag]: typeof Tag; withOptions: (options: SyncAdapterOptions) => Like; /** * Creates a proxy handler for fetching durable endpoint results from Inngest. * * This is used by `inngest.endpointProxy()` to create framework-specific * handlers that can poll for and decrypt results. */ createProxyHandler?: ProxyFn; } const create: <TFn extends Fn, TProxyFn extends ProxyFn | undefined>(rawFn: TFn, proxyFn?: TProxyFn) => TFn & Like & (TProxyFn extends ProxyFn ? { createProxyHandler: TProxyFn; } : object); } //#endregion export { InngestEndpointAdapter }; //# sourceMappingURL=InngestEndpointAdapter.d.cts.map