From 840decc0b797f06742a8cdbab9ae10005ac659e8 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Wed, 2 Dec 2026 11:20:42 +0100 Subject: [PATCH] Drop SignedSource hash from ReactNativeApi.d.ts --- packages/react-native/ReactNativeApi.d.ts | 2 +- .../templates/ReactNativeApi.d.ts-template.js | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/react-native/ReactNativeApi.d.ts b/packages/react-native/ReactNativeApi.d.ts index 735254dac1c8..f1aacbf8f6bf 100644 --- a/packages/react-native/ReactNativeApi.d.ts +++ b/packages/react-native/ReactNativeApi.d.ts @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<> + * @generated * * This file was generated by scripts/js-api/build-types/index.js. */ diff --git a/scripts/js-api/build-types/templates/ReactNativeApi.d.ts-template.js b/scripts/js-api/build-types/templates/ReactNativeApi.d.ts-template.js index 1185d29fb069..0e5d2085c7e6 100644 --- a/scripts/js-api/build-types/templates/ReactNativeApi.d.ts-template.js +++ b/scripts/js-api/build-types/templates/ReactNativeApi.d.ts-template.js @@ -8,17 +8,14 @@ * @format */ -const signedsource = require('signedsource'); - function apiSnapshotTemplate(source: string): string { - return signedsource.signFile( - `/** + return `/** * 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. * - * ${signedsource.getSigningToken()} + * @generated * * This file was generated by scripts/js-api/build-types/index.js. */ @@ -36,8 +33,7 @@ function apiSnapshotTemplate(source: string): string { /* eslint-disable redundant-undefined/redundant-undefined */ ${source} -`, - ); +`; } module.exports = apiSnapshotTemplate;