From 7dea2eb7c048321d1bb7f88be4c2f6fcc148c4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Dupanovi=C4=87?= Date: Sun, 1 Sep 2024 20:28:19 +0200 Subject: [PATCH] fix(schemastore-to-typescript): Supress `keyv-file` type errors Suppresses type errors from `keyv-file` upgrade. Fixes #945. --- ...to-typescript-02c10be5-67cf-4770-bd8b-09ab92f840e2.json | 7 +++++++ packages/schemastore-to-typescript/src/index.ts | 1 + 2 files changed, 8 insertions(+) create mode 100644 change/@langri-sha-schemastore-to-typescript-02c10be5-67cf-4770-bd8b-09ab92f840e2.json diff --git a/change/@langri-sha-schemastore-to-typescript-02c10be5-67cf-4770-bd8b-09ab92f840e2.json b/change/@langri-sha-schemastore-to-typescript-02c10be5-67cf-4770-bd8b-09ab92f840e2.json new file mode 100644 index 000000000..6fdb353aa --- /dev/null +++ b/change/@langri-sha-schemastore-to-typescript-02c10be5-67cf-4770-bd8b-09ab92f840e2.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix(schemastore-to-typescript): Supress `keyv-file` type errors", + "packageName": "@langri-sha/schemastore-to-typescript", + "email": "filip.dupanovic@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/schemastore-to-typescript/src/index.ts b/packages/schemastore-to-typescript/src/index.ts index 8e58b786f..952835dc8 100644 --- a/packages/schemastore-to-typescript/src/index.ts +++ b/packages/schemastore-to-typescript/src/index.ts @@ -13,6 +13,7 @@ import { KeyvFile } from 'keyv-file' const debug = createDebug('schema-store-to-typescript') const paths = envPaths('schemastore-to-typescript') +// @ts-expect-error: Error with `keyv-file` package. const keyv = new Keyv({ store: new KeyvFile({ filename: path.join(paths.cache, 'requests.json'),