Skip to content

Commit 1884832

Browse files
committed
feat: introduce callable aliases
closes #42
1 parent 8921605 commit 1884832

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = exports = function define(strategies) {
1111

1212
// strategy exports
1313

14-
exports.override = function override(functions) {
14+
exports.callable = exports.override = function override(functions) {
1515
var args = argsToArray(arguments).slice(1);
1616
var fn = functions.slice().pop();
1717
if (isFunction(fn)) {
@@ -46,13 +46,15 @@ exports.compose = function compose(functions) {
4646
};
4747

4848
exports.async = {
49+
callable: asynchronize(exports.callable),
4950
override: asynchronize(exports.override),
5051
parallel: asynchronize(exports.parallel),
5152
pipe: asynchronize(exports.pipe),
5253
compose: asynchronize(exports.compose),
5354
};
5455

5556
exports.sync = {
57+
callable: asynchronize(exports.callable),
5658
override: synchronize(exports.override),
5759
sequence: synchronize(exports.parallel),
5860
parallel: synchronize(exports.parallel),

0 commit comments

Comments
 (0)