summaryrefslogtreecommitdiff
path: root/preact/src/options.js
blob: 174f3227057ba56605c188e2d54a3da31fc4cb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { _catchError } from './diff/catch-error';

/**
 * The `option` object can potentially contain callback functions
 * that are called during various stages of our renderer. This is the
 * foundation on which all our addons like `preact/debug`, `preact/compat`,
 * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`
 * for a full list of available option hooks (most editors/IDEs allow you to
 * ctrl+click or cmd+click on mac the type definition below).
 * @type {import('./internal').Options}
 */
const options = {
	_catchError
};

export default options;