You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
fix: Update command-options.md with proper key 'RESP_TYPES' (#3040)
This commit is contained in:
@@ -12,7 +12,7 @@ Some [RESP types](./RESP.md) can be mapped to more than one JavaScript type. For
|
||||
await client.get('key'); // `string | null`
|
||||
|
||||
const proxyClient = client.withTypeMapping({
|
||||
[TYPES.BLOB_STRING]: Buffer
|
||||
[RESP_TYPES.BLOB_STRING]: Buffer
|
||||
});
|
||||
|
||||
await proxyClient.get('key'); // `Buffer | null`
|
||||
|
Reference in New Issue
Block a user