Repository navigation
Conversation
huntie
requested changes
Dec 2, 2026
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| * | ||
| * @generated SignedSource<<d85687fceb0705d7e07b3a0b4529a17f>> |
Collaborator
There was a problem hiding this comment.
Keen for us to validate this header, rather than delete it. We should prevent humans or agents from manually modifying this file. And it's an added level of intentionality — this file, and the API, isn't (quite) changed every day.
It's indeed a little inconvenient for merge conflicts, but agents are instructed to handle this (and in my use, do so transparently now).
Line 71 in f7f1ab5
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Two PRs that touch the public JS API always conflict in
packages/react-native/ReactNativeApi.d.ts, even when their changes are far apart. The cause is the@generated SignedSource<<...>>hash in the header: it is an MD5 of the whole file, so it changes on every API change.Nothing in OSS verifies this signature.
yarn build-types --validatecompares the full file text. This PR replaces the hash with a plain@generatedmarker, like the C++ API snapshots inscripts/cxx-api/api-snapshots.Changelog:
[INTERNAL] [CHANGED] - Drop SignedSource hash from ReactNativeApi.d.ts
Test Plan:
I ran
yarn build-types, which changed only the header line of the snapshot, then confirmed thatyarn build-types --validatepasses.