Skip to content

Commit fe81c1f

Browse files
authored
update TS 493 (keybase#25267)
1 parent 0e5e421 commit fe81c1f

8 files changed

Lines changed: 69 additions & 63 deletions

File tree

‎shared/.eslintignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ storybook/index.native.js
1818
storybook/webpack.config.js
1919
test/setupTestFrameworkScriptFile.js
2020
common-adapters/swipeable.native.tsx
21+
common-adapters/index-impl.tsx
22+
common-adapters/mobile.native.native.tsx

‎shared/common-adapters/channel.stories.tsx‎

Whitespace-only changes.

‎shared/common-adapters/index-impl.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// @ts-nocheck
2-
/* eslint-disable */
1+
// this is to defer actually importing these modules until you actually use them
2+
// this file is ignored by ts
3+
// @ts-ignore
34
module.exports = {
45
get Animation() {
56
return require('./animation').default

‎shared/common-adapters/mobile.native.native.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
// this file is ignored by ts
12
// @ts-nocheck
2-
module.hot &&
3-
module.hot.accept(() => {
4-
console.log('accepted update in common-adapters/mobile.native')
5-
})
3+
module.hot?.accept(() => {
4+
console.log('accepted update in common-adapters/mobile.native')
5+
})
66

77
const Index = require('./index.native')
88
const NativeWrappers = require('./native-wrappers.native')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
globalThis.buffer = window.Buffer = require('buffer/').Buffer
2+
export {}

‎shared/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181
"@types/unidecode": "0.1.1",
182182
"@types/url-parse": "1.4.8",
183183
"@types/webpack-env": "1.18.0",
184-
"@typescript-eslint/eslint-plugin": "5.42.1",
185-
"@typescript-eslint/parser": "5.42.1",
184+
"@typescript-eslint/eslint-plugin": "5.43.0",
185+
"@typescript-eslint/parser": "5.43.0",
186186
"@welldone-software/why-did-you-render": "7.0.1",
187187
"babel-core": "7.0.0-bridge.0",
188188
"babel-loader": "9.1.0",
@@ -216,7 +216,7 @@
216216
"terser-webpack-plugin": "5.3.6",
217217
"tls": "keybase/nullModule",
218218
"ts-toolbelt": "9.6.0",
219-
"typescript": "4.8.4",
219+
"typescript": "4.9.3",
220220
"webpack": "5.74.0",
221221
"webpack-cli": "4.10.0",
222222
"webpack-dev-server": "4.11.1",

‎shared/tsconfig.base.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
"./android",
5050
"./desktop/dist",
5151
"./desktop/build",
52-
"./common-adapters/swipeable.native.tsx"
52+
"./common-adapters/swipeable.native.tsx",
53+
"./common-adapters/index-impl.tsx",
54+
"./common-adapters/mobile.native.native.tsx"
5355
]
5456
}

‎shared/yarn.lock‎

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,87 +2724,87 @@
27242724
dependencies:
27252725
"@types/node" "*"
27262726

2727-
"@typescript-eslint/eslint-plugin@5.42.1":
2728-
version "5.42.1"
2729-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.1.tgz#696b9cc21dfd4749c1c8ad1307f76a36a00aa0e3"
2730-
integrity sha512-LyR6x784JCiJ1j6sH5Y0K6cdExqCCm8DJUTcwG5ThNXJj/G8o5E56u5EdG4SLy+bZAwZBswC+GYn3eGdttBVCg==
2731-
dependencies:
2732-
"@typescript-eslint/scope-manager" "5.42.1"
2733-
"@typescript-eslint/type-utils" "5.42.1"
2734-
"@typescript-eslint/utils" "5.42.1"
2727+
"@typescript-eslint/eslint-plugin@5.43.0":
2728+
version "5.43.0"
2729+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.43.0.tgz#4a5248eb31b454715ddfbf8cfbf497529a0a78bc"
2730+
integrity sha512-wNPzG+eDR6+hhW4yobEmpR36jrqqQv1vxBq5LJO3fBAktjkvekfr4BRl+3Fn1CM/A+s8/EiGUbOMDoYqWdbtXA==
2731+
dependencies:
2732+
"@typescript-eslint/scope-manager" "5.43.0"
2733+
"@typescript-eslint/type-utils" "5.43.0"
2734+
"@typescript-eslint/utils" "5.43.0"
27352735
debug "^4.3.4"
27362736
ignore "^5.2.0"
27372737
natural-compare-lite "^1.4.0"
27382738
regexpp "^3.2.0"
27392739
semver "^7.3.7"
27402740
tsutils "^3.21.0"
27412741

2742-
"@typescript-eslint/parser@5.42.1":
2743-
version "5.42.1"
2744-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.42.1.tgz#3e66156f2f74b11690b45950d8f5f28a62751d35"
2745-
integrity sha512-kAV+NiNBWVQDY9gDJDToTE/NO8BHi4f6b7zTsVAJoTkmB/zlfOpiEVBzHOKtlgTndCKe8vj9F/PuolemZSh50Q==
2742+
"@typescript-eslint/parser@5.43.0":
2743+
version "5.43.0"
2744+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.43.0.tgz#9c86581234b88f2ba406f0b99a274a91c11630fd"
2745+
integrity sha512-2iHUK2Lh7PwNUlhFxxLI2haSDNyXvebBO9izhjhMoDC+S3XI9qt2DGFUsiJ89m2k7gGYch2aEpYqV5F/+nwZug==
27462746
dependencies:
2747-
"@typescript-eslint/scope-manager" "5.42.1"
2748-
"@typescript-eslint/types" "5.42.1"
2749-
"@typescript-eslint/typescript-estree" "5.42.1"
2747+
"@typescript-eslint/scope-manager" "5.43.0"
2748+
"@typescript-eslint/types" "5.43.0"
2749+
"@typescript-eslint/typescript-estree" "5.43.0"
27502750
debug "^4.3.4"
27512751

2752-
"@typescript-eslint/scope-manager@5.42.1":
2753-
version "5.42.1"
2754-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.42.1.tgz#05e5e1351485637d466464237e5259b49f609b18"
2755-
integrity sha512-QAZY/CBP1Emx4rzxurgqj3rUinfsh/6mvuKbLNMfJMMKYLRBfweus8brgXF8f64ABkIZ3zdj2/rYYtF8eiuksQ==
2752+
"@typescript-eslint/scope-manager@5.43.0":
2753+
version "5.43.0"
2754+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.43.0.tgz#566e46303392014d5d163704724872e1f2dd3c15"
2755+
integrity sha512-XNWnGaqAtTJsUiZaoiGIrdJYHsUOd3BZ3Qj5zKp9w6km6HsrjPk/TGZv0qMTWyWj0+1QOqpHQ2gZOLXaGA9Ekw==
27562756
dependencies:
2757-
"@typescript-eslint/types" "5.42.1"
2758-
"@typescript-eslint/visitor-keys" "5.42.1"
2757+
"@typescript-eslint/types" "5.43.0"
2758+
"@typescript-eslint/visitor-keys" "5.43.0"
27592759

2760-
"@typescript-eslint/type-utils@5.42.1":
2761-
version "5.42.1"
2762-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.42.1.tgz#21328feb2d4b193c5852b35aabd241ccc1449daa"
2763-
integrity sha512-WWiMChneex5w4xPIX56SSnQQo0tEOy5ZV2dqmj8Z371LJ0E+aymWD25JQ/l4FOuuX+Q49A7pzh/CGIQflxMVXg==
2760+
"@typescript-eslint/type-utils@5.43.0":
2761+
version "5.43.0"
2762+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.43.0.tgz#91110fb827df5161209ecca06f70d19a96030be6"
2763+
integrity sha512-K21f+KY2/VvYggLf5Pk4tgBOPs2otTaIHy2zjclo7UZGLyFH86VfUOm5iq+OtDtxq/Zwu2I3ujDBykVW4Xtmtg==
27642764
dependencies:
2765-
"@typescript-eslint/typescript-estree" "5.42.1"
2766-
"@typescript-eslint/utils" "5.42.1"
2765+
"@typescript-eslint/typescript-estree" "5.43.0"
2766+
"@typescript-eslint/utils" "5.43.0"
27672767
debug "^4.3.4"
27682768
tsutils "^3.21.0"
27692769

2770-
"@typescript-eslint/types@5.42.1":
2771-
version "5.42.1"
2772-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.1.tgz#0d4283c30e9b70d2aa2391c36294413de9106df2"
2773-
integrity sha512-Qrco9dsFF5lhalz+lLFtxs3ui1/YfC6NdXu+RAGBa8uSfn01cjO7ssCsjIsUs484vny9Xm699FSKwpkCcqwWwA==
2770+
"@typescript-eslint/types@5.43.0":
2771+
version "5.43.0"
2772+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.43.0.tgz#e4ddd7846fcbc074325293515fa98e844d8d2578"
2773+
integrity sha512-jpsbcD0x6AUvV7tyOlyvon0aUsQpF8W+7TpJntfCUWU1qaIKu2K34pMwQKSzQH8ORgUrGYY6pVIh1Pi8TNeteg==
27742774

2775-
"@typescript-eslint/typescript-estree@5.42.1":
2776-
version "5.42.1"
2777-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.1.tgz#f9a223ecb547a781d37e07a5ac6ba9ff681eaef0"
2778-
integrity sha512-qElc0bDOuO0B8wDhhW4mYVgi/LZL+igPwXtV87n69/kYC/7NG3MES0jHxJNCr4EP7kY1XVsRy8C/u3DYeTKQmw==
2775+
"@typescript-eslint/typescript-estree@5.43.0":
2776+
version "5.43.0"
2777+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.43.0.tgz#b6883e58ba236a602c334be116bfc00b58b3b9f2"
2778+
integrity sha512-BZ1WVe+QQ+igWal2tDbNg1j2HWUkAa+CVqdU79L4HP9izQY6CNhXfkNwd1SS4+sSZAP/EthI1uiCSY/+H0pROg==
27792779
dependencies:
2780-
"@typescript-eslint/types" "5.42.1"
2781-
"@typescript-eslint/visitor-keys" "5.42.1"
2780+
"@typescript-eslint/types" "5.43.0"
2781+
"@typescript-eslint/visitor-keys" "5.43.0"
27822782
debug "^4.3.4"
27832783
globby "^11.1.0"
27842784
is-glob "^4.0.3"
27852785
semver "^7.3.7"
27862786
tsutils "^3.21.0"
27872787

2788-
"@typescript-eslint/utils@5.42.1":
2789-
version "5.42.1"
2790-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.1.tgz#2789b1cd990f0c07aaa3e462dbe0f18d736d5071"
2791-
integrity sha512-Gxvf12xSp3iYZd/fLqiQRD4uKZjDNR01bQ+j8zvhPjpsZ4HmvEFL/tC4amGNyxN9Rq+iqvpHLhlqx6KTxz9ZyQ==
2788+
"@typescript-eslint/utils@5.43.0":
2789+
version "5.43.0"
2790+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.43.0.tgz#00fdeea07811dbdf68774a6f6eacfee17fcc669f"
2791+
integrity sha512-8nVpA6yX0sCjf7v/NDfeaOlyaIIqL7OaIGOWSPFqUKK59Gnumd3Wa+2l8oAaYO2lk0sO+SbWFWRSvhu8gLGv4A==
27922792
dependencies:
27932793
"@types/json-schema" "^7.0.9"
27942794
"@types/semver" "^7.3.12"
2795-
"@typescript-eslint/scope-manager" "5.42.1"
2796-
"@typescript-eslint/types" "5.42.1"
2797-
"@typescript-eslint/typescript-estree" "5.42.1"
2795+
"@typescript-eslint/scope-manager" "5.43.0"
2796+
"@typescript-eslint/types" "5.43.0"
2797+
"@typescript-eslint/typescript-estree" "5.43.0"
27982798
eslint-scope "^5.1.1"
27992799
eslint-utils "^3.0.0"
28002800
semver "^7.3.7"
28012801

2802-
"@typescript-eslint/visitor-keys@5.42.1":
2803-
version "5.42.1"
2804-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.1.tgz#df10839adf6605e1cdb79174cf21e46df9be4872"
2805-
integrity sha512-LOQtSF4z+hejmpUvitPlc4hA7ERGoj2BVkesOcG91HCn8edLGUXbTrErmutmPbl8Bo9HjAvOO/zBKQHExXNA2A==
2802+
"@typescript-eslint/visitor-keys@5.43.0":
2803+
version "5.43.0"
2804+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.43.0.tgz#cbbdadfdfea385310a20a962afda728ea106befa"
2805+
integrity sha512-icl1jNH/d18OVHLfcwdL3bWUKsBeIiKYTGxMJCoGe7xFht+E4QgzOqoWYrU8XSLJWhVw8nTacbm03v23J/hFTg==
28062806
dependencies:
2807-
"@typescript-eslint/types" "5.42.1"
2807+
"@typescript-eslint/types" "5.43.0"
28082808
eslint-visitor-keys "^3.3.0"
28092809

28102810
"@urql/core@2.3.6":
@@ -10627,10 +10627,10 @@ typedarray-to-buffer@^3.1.5:
1062710627
dependencies:
1062810628
is-typedarray "^1.0.0"
1062910629

10630-
typescript@4.8.4:
10631-
version "4.8.4"
10632-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
10633-
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
10630+
typescript@4.9.3:
10631+
version "4.9.3"
10632+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db"
10633+
integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==
1063410634

1063510635
ua-parser-js@^0.7.30:
1063610636
version "0.7.32"

0 commit comments

Comments
 (0)