slavery-js
Version:
A simple clustering app that allows you to scale an application on multiple thread, containers or machines
10 lines (7 loc) • 438 B
text/typescript
import SlaveMethods from '../service/types/SlaveMethods.cjs';
import Options from '../service/types/Options.cjs';
type callableFunction = (...args: any[]) => any;
declare function isSlaveMethods(obj: any): obj is SlaveMethods;
declare function isServiceOptions(obj: any): obj is Options;
declare function isMasterCallback(value: any): value is Function | callableFunction;
export { isMasterCallback, isServiceOptions, isSlaveMethods };