diff --git a/packages/react-native/src/private/webapis/structuredClone/structuredClone.js b/packages/react-native/src/private/webapis/structuredClone/structuredClone.js index 2f493f69c806..820534ef2a57 100644 --- a/packages/react-native/src/private/webapis/structuredClone/structuredClone.js +++ b/packages/react-native/src/private/webapis/structuredClone/structuredClone.js @@ -308,7 +308,7 @@ function cloneArrayBuffer(value: ArrayBuffer): ArrayBuffer { return result; } -function cloneTypedArray(value: $TypedArray): $TypedArray { +function cloneTypedArray(value: $TypedArray): $TypedArray { const buffer = cloneArrayBuffer(value.buffer); const {byteOffset, length} = value; @@ -365,7 +365,9 @@ function defineEnumerableProperty( }); } -declare function isTypedArray(value: unknown): implies value is $TypedArray; +declare function isTypedArray( + value: unknown, +): implies value is $TypedArray; function isTypedArray(value: unknown): boolean { return ArrayBuffer.isView(value) && !(value instanceof DataView); }