1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-10-23 15:05:16 -04:00
parent 42b05b025b
commit 817818aa91
29 changed files with 628 additions and 854 deletions

View File

@@ -14,7 +14,7 @@ type QueryRawReply = TuplesReply<[
metadata: Metadata
]>;
type QueryParam = null | string | number | boolean | QueryParams | Array<QueryParam>;
type QueryParam = null | RedisArgument | number | boolean | QueryParams | Array<QueryParam>;
type QueryParams = {
[key: string]: QueryParam;

View File

@@ -5,7 +5,7 @@ import SLOWLOG from './SLOWLOG';
describe('GRAPH.SLOWLOG', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
SLOWLOG.transformArguments('key'),
['GRAPH.SLOWLOG', 'key']
);
});

View File

@@ -7,7 +7,7 @@ import LIST from './LIST';
import PROFILE from './PROFILE';
import QUERY from './QUERY';
import RO_QUERY from './RO_QUERY';
// import SLOWLOG from './SLOWLOG';
import SLOWLOG from './SLOWLOG';
export default {
CONFIG_GET,
@@ -26,6 +26,6 @@ export default {
query: QUERY,
RO_QUERY,
roQuery: RO_QUERY,
// SLOWLOG,
// slowLog: SLOWLOG
SLOWLOG,
slowLog: SLOWLOG
} as const satisfies RedisCommands;