Skip to content

Commit 17d3df8

Browse files
authored
Bump TypeScript to 6.0.3 (#4311)
## Description Currently we use TypeScript 5. Starting from 0.87, React Native uses TyoeScript 6. I think it is good time to adapt to these changes and bump it in our repository. I've left docs since they are not part of workspaces. ## Test plan - `yarn ts-check` - Installed Gesture Handler from generated package
1 parent 4363f48 commit 17d3df8

13 files changed

Lines changed: 614 additions & 615 deletions

File tree

apps/basic-example/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ PODS:
18451845
- ReactCommon/turbomodule/core
18461846
- ReactNativeDependencies
18471847
- Yoga
1848-
- RNReanimated (4.4.1):
1848+
- RNReanimated (4.4.2):
18491849
- hermes-engine
18501850
- RCTRequired
18511851
- RCTTypeSafety
@@ -1867,11 +1867,11 @@ PODS:
18671867
- ReactCommon/turbomodule/bridging
18681868
- ReactCommon/turbomodule/core
18691869
- ReactNativeDependencies
1870-
- RNReanimated/apple (= 4.4.1)
1871-
- RNReanimated/common (= 4.4.1)
1870+
- RNReanimated/apple (= 4.4.2)
1871+
- RNReanimated/common (= 4.4.2)
18721872
- RNWorklets
18731873
- Yoga
1874-
- RNReanimated/apple (4.4.1):
1874+
- RNReanimated/apple (4.4.2):
18751875
- hermes-engine
18761876
- RCTRequired
18771877
- RCTTypeSafety
@@ -1895,7 +1895,7 @@ PODS:
18951895
- ReactNativeDependencies
18961896
- RNWorklets
18971897
- Yoga
1898-
- RNReanimated/common (4.4.1):
1898+
- RNReanimated/common (4.4.2):
18991899
- hermes-engine
19001900
- RCTRequired
19011901
- RCTTypeSafety
@@ -2307,8 +2307,8 @@ SPEC CHECKSUMS:
23072307
ReactCodegen: 21807c5e7d6d0e334667f755e23063834d581e62
23082308
ReactCommon: d5c1bb4427bf51c443de5926aac332c89ddd9363
23092309
ReactNativeDependencies: fa0a54b3f5319ae0e3b9aff32bfee7a424b88e66
2310-
RNGestureHandler: f07cf8b0a45a4eee18163629f78413b0a534aece
2311-
RNReanimated: d6e6865fa9d5ce60863a9e244de45de4f9890e46
2310+
RNGestureHandler: fe9b35b6e49c42ab354b4bcc57b0a7f58c42b124
2311+
RNReanimated: eb5a9abc86e6f1014d152984ac5e8f8f6d9c4235
23122312
RNWorklets: 04a35c45bd72d24914cbaf24bdfa4e30e1eab2df
23132313
Yoga: fe50ab299e578f397fef753cf309c6703a4db29b
23142314

apps/basic-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"jest": "^29.6.3",
5151
"prettier": "3.3.3",
5252
"react-test-renderer": "19.2.3",
53-
"typescript": "~5.8.3"
53+
"typescript": "~6.0.3"
5454
},
5555
"engines": {
5656
"node": ">=22.11.0"

apps/basic-example/tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
5-
"baseUrl": ".",
65
"paths": {
76
"react-native-gesture-handler": [
87
"../../packages/react-native-gesture-handler/src"
@@ -17,8 +16,10 @@
1716
"../../packages/react-native-gesture-handler/src/jestUtils/index.ts"
1817
]
1918
},
20-
"types": ["jest","../../packages/react-native-gesture-handler/src/global.d.ts"]
21-
19+
"types": [
20+
"jest",
21+
"../../packages/react-native-gesture-handler/src/global.d.ts"
22+
]
2223
},
2324
"include": ["src/**/*.ts", "src/**/*.tsx"]
2425
}

apps/common-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"jest": "^29.6.3",
5757
"prettier": "3.3.3",
5858
"react-test-renderer": "19.0.0",
59-
"typescript": "~5.8.3"
59+
"typescript": "~6.0.3"
6060
},
6161
"engines": {
6262
"node": ">=18"

apps/common-app/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
5-
"baseUrl": ".",
65
"noImplicitOverride": false,
76
"paths": {
87
"@/*": ["./*"],

apps/expo-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@types/react": "~19.1.10",
4040
"@types/react-dom": "~19.1.7",
4141
"@types/react-native-web": "^0",
42-
"typescript": "~5.9.2"
42+
"typescript": "~6.0.3"
4343
},
4444
"private": true,
4545
"installConfig": {

apps/macos-example/macos/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ PODS:
23972397
- ReactCommon/turbomodule/core
23982398
- SocketRocket
23992399
- Yoga
2400-
- RNReanimated (4.3.1):
2400+
- RNReanimated (4.3.2):
24012401
- boost
24022402
- DoubleConversion
24032403
- fast_float
@@ -2424,12 +2424,12 @@ PODS:
24242424
- ReactCodegen
24252425
- ReactCommon/turbomodule/bridging
24262426
- ReactCommon/turbomodule/core
2427-
- RNReanimated/apple (= 4.3.1)
2428-
- RNReanimated/common (= 4.3.1)
2427+
- RNReanimated/apple (= 4.3.2)
2428+
- RNReanimated/common (= 4.3.2)
24292429
- RNWorklets
24302430
- SocketRocket
24312431
- Yoga
2432-
- RNReanimated/apple (4.3.1):
2432+
- RNReanimated/apple (4.3.2):
24332433
- boost
24342434
- DoubleConversion
24352435
- fast_float
@@ -2459,7 +2459,7 @@ PODS:
24592459
- RNWorklets
24602460
- SocketRocket
24612461
- Yoga
2462-
- RNReanimated/common (4.3.1):
2462+
- RNReanimated/common (4.3.2):
24632463
- boost
24642464
- DoubleConversion
24652465
- fast_float
@@ -2953,8 +2953,8 @@ SPEC CHECKSUMS:
29532953
ReactCodegen: 71eeba9793ebeafd39bc9695d007b79fd8cad15e
29542954
ReactCommon: 9f8189efbc1aa52926df2791a2e47b3340353849
29552955
RNCAsyncStorage: 7e57f4fe4332cbf21bf6bdbffaf9fd34c9268abd
2956-
RNGestureHandler: b56413eaa25d0177fb810d738f93ed5d725fa0ae
2957-
RNReanimated: 475b050772aaddb82af69ddb607ea2fcbca9a233
2956+
RNGestureHandler: f45c8f09dea032145723ad35020f4977230e3806
2957+
RNReanimated: a178124a481a813ca599f183ece48c373b630f82
29582958
RNSVG: 681be694d501c0af971615811d4f2ea9baf58966
29592959
RNWorklets: 68ab13976d7eba39fb2f0844994a51380e76046d
29602960
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748

apps/macos-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@types/react-test-renderer": "^19.1.0",
4444
"jest": "^29.6.3",
4545
"react-test-renderer": "19.1.4",
46-
"typescript": "~5.8.3"
46+
"typescript": "~6.0.3"
4747
},
4848
"engines": {
4949
"node": ">=20"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"jest": "^29.7.0",
3434
"lint-staged": "^12.3.2",
3535
"prettier": "3.3.3",
36-
"typescript": "~5.8.3"
36+
"typescript": "~6.0.3"
3737
},
3838
"packageManager": "yarn@4.13.0"
3939
}

packages/react-native-gesture-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"react-native-reanimated": "~4.4.1",
101101
"react-native-worklets": "0.9.1",
102102
"react-test-renderer": "19.2.3",
103-
"typescript": "~5.8.3"
103+
"typescript": "~6.0.3"
104104
},
105105
"peerDependencies": {
106106
"react": "*",

0 commit comments

Comments
 (0)