UNPKG

slavery-js

Version:

A simple clustering app that allows you to scale an application on multiple thread, containers or machines

19 lines 658 B
import "../chunk-V6TY7KAL.js"; function isSlaveMethods(obj) { if (obj === null || obj === void 0) return false; return obj && typeof obj === "object" && Object.values(obj).some((value) => typeof value === "function"); } function isServiceOptions(obj) { if (obj === null || obj === void 0) return false; return obj && typeof obj === "object" && Object.values(obj).every((value) => typeof value !== "function"); } function isMasterCallback(value) { if (value === null || value === void 0) return false; return typeof value === "function"; } export { isMasterCallback, isServiceOptions, isSlaveMethods }; //# sourceMappingURL=typeGuards.js.map