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.

14 lines (12 loc) 362 B
//#region src/helpers/enum.ts /** * Returns the value of an enum from a string value. * * If the value given is not a value from the enum, `undefined` is returned. */ const enumFromValue = (enumType, value) => { if (Object.values(enumType).includes(value)) return value; }; //#endregion exports.enumFromValue = enumFromValue; //# sourceMappingURL=enum.cjs.map