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.

19 lines (18 loc) 549 B
//#region src/helpers/marker.ts /** * Property name used to stamp SDK-internal metadata onto objects. The tilde * prefix signals "internal, don't touch." */ const markerKey = "~inngest"; function getMarker(value) { if (typeof value !== "object" || value === null) return; const m = value[markerKey]; if (typeof m !== "object" || m === null) return; return m; } function isDeferredFunction(value) { return getMarker(value)?.kind === "deferredFunction"; } //#endregion export { isDeferredFunction, markerKey }; //# sourceMappingURL=marker.js.map