From 464a511cf10ef73d705466d11dd659e9090a037c Mon Sep 17 00:00:00 2001 From: Andrii Kirmas Date: Fri, 12 Mar 2021 23:58:56 +0300 Subject: [PATCH] #41 Install other typescript version --- package-lock.json | 18 +++++++++++++++--- package.json | 5 ++++- src/bem.types.test.ts | 2 +- tsconfig.json | 2 +- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1112ed5..fd7fcd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6998,6 +6998,18 @@ "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", "dev": true }, + "ts-4.0": { + "version": "npm:typescript@4.0.7", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.7.tgz", + "integrity": "sha512-yi7M4y74SWvYbnazbn8/bmJmX4Zlej39ZOqwG/8dut/MYoSQ119GY9ZFbbGsD4PFZYWxqik/XsP3vk3+W5H3og==", + "dev": true + }, + "ts-4.1": { + "version": "npm:typescript@4.1.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz", + "integrity": "sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==", + "dev": true + }, "ts-jest": { "version": "26.5.1", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.1.tgz", @@ -7086,9 +7098,9 @@ } }, "typescript": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.2.tgz", - "integrity": "sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", + "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", "dev": true }, "union-value": { diff --git a/package.json b/package.json index b749a64..773266c 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "dist" ], "peerDependencies": { + "typescript": ">=4.2", "@types/react": "*" }, "devDependencies": { @@ -81,7 +82,9 @@ "np": "^7.3.0", "react": "^17.0.1", "react-dom": "^17.0.1", + "ts-4.0": "npm:typescript@4.0.7", + "ts-4.1": "npm:typescript@4.1.5", "ts-jest": "^26.5.0", - "typescript": "^4.2.2" + "typescript": "^4.2.3" } } diff --git a/src/bem.types.test.ts b/src/bem.types.test.ts index 58aec14..e854bc0 100644 --- a/src/bem.types.test.ts +++ b/src/bem.types.test.ts @@ -1,5 +1,5 @@ import type {BemQuery, Mods} from "./bem.types" -import { PartDeep } from "./ts-swiss.types" +import type { PartDeep } from "./ts-swiss.types" describe("BemQuery", () => { it("block", () => { diff --git a/tsconfig.json b/tsconfig.json index ecabcf1..e3a8b0b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,7 +34,7 @@ "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitThis": true, - "noUncheckedIndexedAccess": false, + // "noUncheckedIndexedAccess": false, "allowSyntheticDefaultImports": true, "esModuleInterop": true,