redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.06k stars 1.19k forks source link

Documentation: Example xread usage results in TS2769 No overload matches this call #1871

Open charlesritchea opened 3 months ago

charlesritchea commented 3 months ago

TypeScript error: const results = await redis.xread("block", 0, "STREAMS", "mystream", lastId); No error: const results = await redis.xread("BLOCK", 0, "STREAMS", "mystream", lastId); Looks like the type definitions require this to be the exact string