redis / redis/node-redis

Questions in V4 ?

Open
#1,754 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question
Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Environment:

  • Node.js Version: 12.14.0
  • Redis Server Version:
  • Node Redis Version: 4.0.0
  • Platform: Mac os
Question 1

Use typescript ,The type of the instance was not found ?

const client: any = redis.createClient({ ... })
Question 2

tsconfig target is set es5 , use tsc compile.
However, there is a #private definition in the type definition that is not available for es5

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the redis.createClient entry point and inspect the TypeScript type definitions used by the example. Reproduce both questions with Node.js 12.14.0, Node Redis 4.0.0, and a tsconfig targeting ES5; done means the instance type and the ES5 compilation behavior are clearly explained or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, redis, typescript
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.