UNPKG

fluid-chains

Version:

A simple way to organize asynchronous Javascript functions.

13 lines (12 loc) 338 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var ValidateConstructor = exports.ValidateConstructor = function ValidateConstructor(name, action) { if (!name) { throw new Error('Name is required.'); } if (!action) { throw new Error('Action (Function) is required.'); } };