strapi-community / strapi-plugin-redis

Plugin used to centralize management of Redis connections in Strapi
MIT License
41 stars 5 forks source link

TypeScript error when using strapi.redis #17

Closed Deer404 closed 1 month ago

Deer404 commented 1 year ago

Description: I am using strapi.redis in my Strapi project with TypeScript, but I am getting a TypeScript error that says "Property redis does not exist on type strapi".

Steps to reproduce:

  1. Install strapi-plugin-redis package
  2. set config and use strapi.redis

Expected behavior: TypeScript should recognize the redis property on strapi and not throw an error.

Actual behavior: TypeScript is throwing an error that says "Property redis does not exist on type strapi".

Environment:

Strapi version: 4.10.5 Node.js version: 18.16 NPM/Yarn version: 9.5.1 Operating system: debian 10

derrickmehaffy commented 1 year ago

I don't currently know typescript nor do I plan on writing types for this package, if someone wants to open a PR I can review and merge it but for now I don't use TS