UNPKG

@connectv/core

Version:

agent-based reactive programming library for typescript/javascript

15 lines 540 B
import { PinMap } from '../pin/pin-map'; import { isSignature } from './signature'; /** * * * @param whatever * @returns `true` if `whatever` satisfies `AgentLike` interface. * */ export function isAgentLike(whatever) { return whatever !== undefined && (typeof whatever.in == 'function') && (typeof whatever.out == 'function') && whatever.inputs instanceof PinMap && whatever.outputs instanceof PinMap && whatever.signature !== undefined && isSignature(whatever.signature); } //# sourceMappingURL=agent-like.js.map