UNPKG

418 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10type ErrorHandlerCallback = (error: any, isFatal?: boolean) => void;
11
12export interface ErrorUtils {
13 setGlobalHandler: (callback: ErrorHandlerCallback) => void;
14 getGlobalHandler: () => ErrorHandlerCallback;
15}