Skip to content

Typescript breaking Change on Keyv 5.3.3 - declarations of a private property '_ttl'. #1378

@naanlizard

Description

@naanlizard

NOTE: This is now fixed as we are deploying Keyv as a peer dependency. Please upgrade to the latest version of Keyvand supporting packages. An example would be using @keyv/redis:

npm update keyv @keyv/redis

For a fresh installation:

npm install --save keyv @keyv/redis

[deps 3/3] RUN yarn build:
0.399 yarn run v1.22.22
0.434 $ tsc
8.090 src/entityRepository.ts(62,7): error TS2322: Type 'Keyv' is not assignable to type 'KeyvStoreAdapter | Keyv'.
8.090 Type 'import("/usr/app/node_modules/keyv/dist/index").Keyv' is not assignable to type 'import("/usr/app/node_modules/@keyv/redis/node_modules/keyv/dist/index").Keyv'.
8.090 Types have separate declarations of a private property '_ttl'.
8.090 src/program/index.ts(152,7): error TS2322: Type 'Keyv' is not assignable to type 'KeyvStoreAdapter | Keyv'.
8.090 Type 'import("/usr/app/node_modules/keyv/dist/index").Keyv' is not assignable to type 'import("/usr/app/node_modules/@keyv/redis/node_modules/keyv/dist/index").Keyv'.
8.090 Types have separate declarations of a private property '_ttl'.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions