diff --git a/README.md b/README.md index 8263e6e1..2097fcfe 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,9 @@ npm install --save-dev @types/node ```javascript // Import ioredis. // You can also use `import Redis from "ioredis"` -// if your project is an ESM module or a TypeScript project. +// if your project is a TypeScript project, +// or `import { default as Redis } from "ioredis"` +// if it is an ESM module. const Redis = require("ioredis"); // Create a Redis instance.