diff --git a/packages/react-native/types/__typetests__/animated.tsx b/packages/react-native/__typetests__/animated.tsx similarity index 100% rename from packages/react-native/types/__typetests__/animated.tsx rename to packages/react-native/__typetests__/animated.tsx diff --git a/packages/react-native/types/__typetests__/fabric-component-sample.ts b/packages/react-native/__typetests__/fabric-component-sample.ts similarity index 100% rename from packages/react-native/types/__typetests__/fabric-component-sample.ts rename to packages/react-native/__typetests__/fabric-component-sample.ts diff --git a/packages/react-native/types/__typetests__/globals.tsx b/packages/react-native/__typetests__/globals.tsx similarity index 100% rename from packages/react-native/types/__typetests__/globals.tsx rename to packages/react-native/__typetests__/globals.tsx diff --git a/packages/react-native/types/__typetests__/index.tsx b/packages/react-native/__typetests__/index.tsx similarity index 100% rename from packages/react-native/types/__typetests__/index.tsx rename to packages/react-native/__typetests__/index.tsx diff --git a/packages/react-native/types/__typetests__/legacy-properties.tsx b/packages/react-native/__typetests__/legacy-properties.tsx similarity index 100% rename from packages/react-native/types/__typetests__/legacy-properties.tsx rename to packages/react-native/__typetests__/legacy-properties.tsx diff --git a/packages/react-native/types/__typetests__/stylesheet-create.tsx b/packages/react-native/__typetests__/stylesheet-create.tsx similarity index 100% rename from packages/react-native/types/__typetests__/stylesheet-create.tsx rename to packages/react-native/__typetests__/stylesheet-create.tsx diff --git a/packages/react-native/types/__typetests__/stylesheet-flatten.tsx b/packages/react-native/__typetests__/stylesheet-flatten.tsx similarity index 100% rename from packages/react-native/types/__typetests__/stylesheet-flatten.tsx rename to packages/react-native/__typetests__/stylesheet-flatten.tsx diff --git a/packages/react-native/types/__typetests__/turbo-module-sample.ts b/packages/react-native/__typetests__/turbo-module-sample.ts similarity index 65% rename from packages/react-native/types/__typetests__/turbo-module-sample.ts rename to packages/react-native/__typetests__/turbo-module-sample.ts index b178fdcc51b..698bc125315 100644 --- a/packages/react-native/types/__typetests__/turbo-module-sample.ts +++ b/packages/react-native/__typetests__/turbo-module-sample.ts @@ -3,20 +3,21 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. + * + * @format */ -import { TurboModule, TurboModuleRegistry } from 'react-native'; -'use strict'; +import {TurboModule, TurboModuleRegistry} from 'react-native'; export interface SomeConstants { - x: string; - y: number; - z: boolean; + x: string; + y: number; + z: boolean; } export interface SampleSpec extends TurboModule { - getConstants(): SomeConstants - doSomething(): void; + getConstants(): SomeConstants; + doSomething(): void; } export default TurboModuleRegistry.getEnforcing('Sample'); diff --git a/packages/react-native/types/tsconfig.json b/packages/react-native/types/tsconfig.json index 8e8963ec2f6..bb7659500b1 100644 --- a/packages/react-native/types/tsconfig.json +++ b/packages/react-native/types/tsconfig.json @@ -12,5 +12,6 @@ "noEmit": true, "forceConsistentCasingInFileNames": true, "paths": {"react-native": ["."]} - } + }, + "include": ["**/*.d.ts", "../__typetests__/**/*"] } diff --git a/scripts/js-api/build-types/templates/tsconfig.test.json b/scripts/js-api/build-types/templates/tsconfig.test.json index 209586008a5..7af1dd074cb 100644 --- a/scripts/js-api/build-types/templates/tsconfig.test.json +++ b/scripts/js-api/build-types/templates/tsconfig.test.json @@ -13,5 +13,5 @@ "moduleResolution": "bundler", "customConditions": ["react-native-strict-api"] }, - "include": ["**/*.d.ts", "../types/__typetests__/**/*"] + "include": ["**/*.d.ts", "../__typetests__/**/*"] }