/** * Exception boundary * * @param fn executable function * @param onError callback that will be executed once exception occurred */ export default function bewareExceptions(fn: () => T, onError?: (reason: any) => void): T | null;