mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b788b6e1c9
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34801 D39796598 (https://github.com/facebook/react-native/commit/8cdc9e7f04e2dd3026d15dcd5765952bfb2c5c08) broke this CircleCI job, causing failures for `dtslint` and `prettier`. This fixes both issues, by upating formatting, and removing types from `legacy-properties.d.ts` that we no longer export. These were not flagged by sandcastle. It looks like this is because: 1. We run eslint, but not dtslint internally 2. Arcanist will ignore anything under a "vendor" directory, while we do not exlude anything from the prettier check in OSS. I also updated the eslint config to lint any TypeScript that appears outside the types directory, since typings are now spread out. Changelog: [Internal][Fixed] - Fix `analyze_code` CircleCI Job Reviewed By: cipolleschi Differential Revision: D39848604 fbshipit-source-id: 844dfe26e4b618059542b29df163402079c39322
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
type ErrorHandlerCallback = (error: any, isFatal?: boolean) => void;
|
|
|
|
export interface ErrorUtils {
|
|
setGlobalHandler: (callback: ErrorHandlerCallback) => void;
|
|
getGlobalHandler: () => ErrorHandlerCallback;
|
|
}
|