@react-native/js-polyfills 0.89.0-rc.0 → 0.90.0-nightly-20261106-cd45f309e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/error-guard.js +2 -2
- package/package.json +1 -1
package/error-guard.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
let _inGuard = 0;
|
|
13
13
|
|
|
14
14
|
type ErrorHandler = (error: unknown, isFatal: boolean) => void;
|
|
15
|
-
type Fn<Args, Return> = (...Args) => Return;
|
|
15
|
+
type Fn<Args, Return> = (...rest: Args) => Return;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* This is the error handler that is called when we encounter an exception
|
|
@@ -98,7 +98,7 @@ const ErrorUtils = {
|
|
|
98
98
|
fun: Fn<TArgs, TOut>,
|
|
99
99
|
name?: ?string,
|
|
100
100
|
context?: ?unknown,
|
|
101
|
-
): ?(...TArgs) => ?TOut {
|
|
101
|
+
): ?(...rest: TArgs) => ?TOut {
|
|
102
102
|
// TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types
|
|
103
103
|
// should be sufficient.
|
|
104
104
|
if (typeof fun !== 'function') {
|