Fix yarn lint:types when matrix-js-sdk is not yarn linked. (#30612)
* Add missing dependencies on `@types` packages Because we import the typescript source from matrix-js-sdk rather than the `.d.ts` files, `tsc` ends up type-checking the js-sdk source. That means that we need to have the `@types` packages that js-sdk needs. * Add missing type definitions for `setInterval` and `setTimeout` Our source assumes that `setTimeout` returns a number, not a `Timeout`. If we `yarn link` js-sdk, then (somehow) we end up using the definitions from there, but it's not really correct. * Configure knip to ignore new deps
This commit is contained in:
committed by
GitHub
parent
87b4918d34
commit
a003ebcb35
10
yarn.lock
10
yarn.lock
@@ -3965,6 +3965,11 @@
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/content-type@^1.1.9":
|
||||
version "1.1.9"
|
||||
resolved "https://registry.yarnpkg.com/@types/content-type/-/content-type-1.1.9.tgz#a0240a8141b33549ac0ca6847f4b801580012bca"
|
||||
integrity sha512-Hq9IMnfekuOCsEmYl4QX2HBrT+XsfXiupfrLLY8Dcf3Puf4BkBOxSbWYTITSOQAhJoYPBez+b4MJRpIYL65z8A==
|
||||
|
||||
"@types/counterpart@^0.18.1":
|
||||
version "0.18.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/counterpart/-/counterpart-0.18.4.tgz#e3e331b7e0d5496873d417839f3b2bbcf555bb73"
|
||||
@@ -4334,6 +4339,11 @@
|
||||
dependencies:
|
||||
htmlparser2 "^8.0.0"
|
||||
|
||||
"@types/sdp-transform@^2.4.10":
|
||||
version "2.4.10"
|
||||
resolved "https://registry.yarnpkg.com/@types/sdp-transform/-/sdp-transform-2.4.10.tgz#f4e60fbc97f66527f221a3ae092be7c465c55f56"
|
||||
integrity sha512-999diMTpgQGt+dj+tAEQNvBAJYkOip83NJn1RruqNmqeLYNZpQnUX/YrugR+ekXvdJ9pdkZtYg1jiM3mG3NhRg==
|
||||
|
||||
"@types/seedrandom@^3.0.8":
|
||||
version "3.0.8"
|
||||
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-3.0.8.tgz#61cc8ed88f93a3c31289c295e6df8ca40be42bdf"
|
||||
|
||||
Reference in New Issue
Block a user