1
0
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:
Rahul Narasimman
2025-07-29 15:41:09 +02:00
committed by GitHub
parent 2eaaa58736
commit 3d7668e543

View File

@@ -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` await client.get('key'); // `string | null`
const proxyClient = client.withTypeMapping({ const proxyClient = client.withTypeMapping({
[TYPES.BLOB_STRING]: Buffer [RESP_TYPES.BLOB_STRING]: Buffer
}); });
await proxyClient.get('key'); // `Buffer | null` await proxyClient.get('key'); // `Buffer | null`