From 46df92bf3af510c27a09b77887c5cd579169c1ce Mon Sep 17 00:00:00 2001 From: Igor Zviagintsev Date: Fri, 17 May 2024 13:04:22 +0400 Subject: [PATCH] 3850 - update TS to version with new Set methods; remove copied types for it --- package.json | 2 +- packages/mobx/src/global.d.ts | 17 ----------------- yarn.lock | 14 +++++++------- 3 files changed, 8 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index b99acfa9a..02ab51d83 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "tape": "^5.0.1", "ts-jest": "^29.0.5", "tsdx": "^0.14.1", - "typescript": "^5.5.0-dev.20240415" + "typescript": "5.5.0-dev.20240517" }, "husky": { "hooks": { diff --git a/packages/mobx/src/global.d.ts b/packages/mobx/src/global.d.ts index dbb9fa52e..404c55f1e 100644 --- a/packages/mobx/src/global.d.ts +++ b/packages/mobx/src/global.d.ts @@ -1,18 +1 @@ declare const __DEV__: boolean - -// This code is a copy from TS PR#57230 -// Should be removed after it merged -interface ReadonlySetLike { - /** - * Despite its name, returns an iterable of the values in the set-like. - */ - keys(): Iterator - /** - * @returns a boolean indicating whether an element with the specified value exists in the set-like or not. - */ - has(value: T): boolean - /** - * @returns the number of (unique) elements in the set-like. - */ - readonly size: number -} diff --git a/yarn.lock b/yarn.lock index ac1e791be..c19ac8120 100644 --- a/yarn.lock +++ b/yarn.lock @@ -250,7 +250,7 @@ resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz" integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== -"@babel/helper-validator-identifier@^7.15.7", "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1", "@babel/helper-validator-identifier@^7.22.20": +"@babel/helper-validator-identifier@^7.15.7", "@babel/helper-validator-identifier@^7.19.1", "@babel/helper-validator-identifier@^7.22.20": version "7.22.20" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== @@ -4582,7 +4582,7 @@ chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: +chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -13063,16 +13063,16 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typescript@5.5.0-dev.20240517: + version "5.5.0-dev.20240517" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-dev.20240517.tgz#3f21caef963af4257ba6f2c71caec539f72f7883" + integrity sha512-xpneJT+1seecSblhCb/6RarVhdJzwhEWl0iY26aJxOvtHUiI2tFOajGJALNTy++pwG69iEOeQAR9ax7cKwT9IQ== + typescript@^3.7.3, typescript@^5.0.2: version "5.4.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== -typescript@^5.5.0-dev.20240415: - version "5.5.0-dev.20240415" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-dev.20240415.tgz#7f80d7b0bd18f0dddf4aeafb5157aca5543d4471" - integrity sha512-2FlWR0afPLL3qaO+AcMp6rWmV6nrLoRhwDYAgGn7/Kw1/K8hcW83bZnn+gzGNWfXozx/EdJuG0KfN7V/RGysjg== - uglify-js@^3.1.4: version "3.14.5" resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.5.tgz"