Switch over to Lerna + Yarn Workspaces setup for a mono-repo approach

This commit is contained in:
Fabio Berger
2017-11-12 22:17:18 -05:00
parent a74ec0effa
commit c4ee2d7386
72 changed files with 160 additions and 10540 deletions

View File

@@ -0,0 +1,14 @@
import { DoneCallback } from '../../src/types';
export const reportCallbackErrors = (done: DoneCallback) => {
return (f: (...args: any[]) => void) => {
const wrapped = (...args: any[]) => {
try {
f(...args);
} catch (err) {
done(err);
}
};
return wrapped;
};
};