Skip to content

Commit 2a8e11a

Browse files
authored
Export SetOptions type in redis/client command (#2268)
* Export setOptions type * Export setOptions type in commands * Revert "Export setOptions type in commands" * Export SetOptions type in redis client * Export SetOptions type in @redis/client * Fix lint
1 parent e1c0580 commit 2a8e11a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/client/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ export { defineScript } from './lib/lua-script';
1818
export { GeoReplyWith } from './lib/commands/generic-transformers';
1919

2020
export * from './lib/errors';
21+
22+
export { SetOptions } from "./lib/commands/SET";

packages/client/lib/commands/SET.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface SetCommonOptions {
2222
GET?: true;
2323
}
2424

25-
type SetOptions = SetTTL & SetGuards & SetCommonOptions;
25+
export type SetOptions = SetTTL & SetGuards & SetCommonOptions;
2626

2727
export function transformArguments(
2828
key: RedisCommandArgument,

0 commit comments

Comments
 (0)