Skip to content

Commit a42b7fb

Browse files
authored
fix(ts): xtrim threshold accepts string
1 parent 2fc79bd commit a42b7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/lib/commands/XTRIM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface XTrimOptions {
1010
export function transformArguments(
1111
key: RedisCommandArgument,
1212
strategy: 'MAXLEN' | 'MINID',
13-
threshold: number,
13+
threshold: number | string,
1414
options?: XTrimOptions
1515
): RedisCommandArguments {
1616
const args = ['XTRIM', key, strategy];

0 commit comments

Comments
 (0)