From e4e049a07e93e9fe39988e2c6d6985af7d5f0ea9 Mon Sep 17 00:00:00 2001 From: Shaya Potter Date: Tue, 23 Jul 2024 16:48:08 +0300 Subject: [PATCH] small internal tweak for maxage per discussion w/ leibele --- packages/client/lib/commands/CLIENT_KILL.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/lib/commands/CLIENT_KILL.ts b/packages/client/lib/commands/CLIENT_KILL.ts index f0b31e5cac0..b1a53df64d8 100644 --- a/packages/client/lib/commands/CLIENT_KILL.ts +++ b/packages/client/lib/commands/CLIENT_KILL.ts @@ -38,11 +38,11 @@ type KillSkipMe = ClientKillFilters.SKIP_ME | (KillFilter { +interface KillMaxAge extends KillFilter { maxAge: number; } -type KillFilters = KillAddress | KillLocalAddress | KillId | KillType | KillUser | KillSkipMe | KillMaxage; +type KillFilters = KillAddress | KillLocalAddress | KillId | KillType | KillUser | KillSkipMe | KillMaxAge; export function transformArguments(filters: KillFilters | Array): RedisCommandArguments { const args = ['CLIENT', 'KILL'];