Skip to content

Commit

Permalink
Add @types/react as optional peerDependency on packages that use type…
Browse files Browse the repository at this point in the history
…s from react
  • Loading branch information
acoates-ms committed Mar 15, 2024
1 parent fb42a55 commit eaf0264
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native-popup-menu-android/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
* @format
*/

export type {default} from './PopupMenuAndroid';
export type {PopupMenuAndroidInstance} from './PopupMenuAndroid';
export type {default} from './js/PopupMenuAndroid';
export type {PopupMenuAndroidInstance} from './js/PopupMenuAndroid';
6 changes: 6 additions & 0 deletions packages/react-native-popup-menu-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@
"@react-native/codegen": "0.75.0-main"
},
"peerDependencies": {
"@types/react": "^18.0.0",
"react": "*",
"react-native": "*"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"dependencies": {
"nullthrows": "^1.1.1"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@
"featureflags-update": "node ./scripts/featureflags/index.js"
},
"peerDependencies": {
"@types/react": "^18.0.0",
"react": "18.2.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"dependencies": {
"@jest/create-cache-key-function": "^29.6.3",
"@react-native-community/cli": "14.0.0-alpha.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/virtualized-lists/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
"react-test-renderer": "18.2.0"
},
"peerDependencies": {
"@types/react": "^18.0.0",
"react": "*",
"react-native": "*"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
}

0 comments on commit eaf0264

Please sign in to comment.