diff --git a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js b/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js index 1c8fc7bc2f437e..a1f09deff48e21 100644 --- a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js +++ b/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js @@ -27,7 +27,9 @@ function filterJSFile(file: string) { // NativeSampleTurboModule is for demo purpose. It should be added manually to the // app for now. !file.endsWith('NativeSampleTurboModule.js') && - !file.includes('__tests') + !file.includes('__tests') && + // Ignore TypeScript type declaration files. + !file.endsWith('.d.ts') ); }