We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4c7f9 commit adbd103Copy full SHA for adbd103
README.md
@@ -116,7 +116,9 @@ npm install --save-dev @types/node
116
```javascript
117
// Import ioredis.
118
// You can also use `import Redis from "ioredis"`
119
-// if your project is an ESM module or a TypeScript project.
+// if your project is a TypeScript project,
120
+// or `import { default as Redis } from "ioredis"`
121
+// if it is an ESM module.
122
const Redis = require("ioredis");
123
124
// Create a Redis instance.
0 commit comments