UNPKG

hta

Version:

The tiny framework for building Hyper Text Application with ease

14 lines (12 loc) 304 B
import isPromiseLike from "../core/isPromiseLike"; export default function asyncExtras() { return { component: { error({ error, context }) { if (isPromiseLike(error) && context.handlePromise) return context.handlePromise(error); throw error; }, }, }; }