in src/target.ts [36:51]
constructor() {
if (arguments.length === 0) {
throw new Error(
'Incorrect invocation of Target. ' +
'Must provide at least one argument'
);
}
if (typeof arguments[0] === 'string') {
// Format string
this.source = util.format.apply(null, arguments);
} else {
// Another target
this.source = arguments[0];
this.func = arguments[1];
}
}