From 7e896dbbea42a66dd3d016c11c02987af0275195 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 23 Jun 2025 08:19:36 -0700 Subject: [PATCH] Add @nocommit to V2 JS API snapshot (#52200) Summary: Remains in an experimental format. Add `nocommit` to prevent accidental inclusion in the repo right now. Also disable ESLint rule `redundant-undefined/redundant-undefined`. Changelog: [Internal] Differential Revision: D77150743 --- scripts/build-types/templates/ReactNativeApi.d.ts-template.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build-types/templates/ReactNativeApi.d.ts-template.js b/scripts/build-types/templates/ReactNativeApi.d.ts-template.js index 88440ed013ff..52c76567e12e 100644 --- a/scripts/build-types/templates/ReactNativeApi.d.ts-template.js +++ b/scripts/build-types/templates/ReactNativeApi.d.ts-template.js @@ -19,6 +19,8 @@ function apiSnapshotTemplate(source: string): string { * LICENSE file in the root directory of this source tree. * * ${signedsource.getSigningToken()} + * @${'nocommit'} EXPERIMENTAL V2 API SNAPSHOT - Continue to use public-api-test.js + * until we productionize this format. * * This file was generated by scripts/build-types/index.js. */ @@ -33,6 +35,8 @@ function apiSnapshotTemplate(source: string): string { // values and types that can be imported from the react-native package. // ---------------------------------------------------------------------------- +/* eslint-disable redundant-undefined/redundant-undefined */ + ${source} `, );