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.
21 lines (19 loc) • 589 B
JavaScript
//#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
exports.isDeferredFunction = isDeferredFunction;
exports.markerKey = markerKey;
//# sourceMappingURL=marker.cjs.map