Skip to content

Commit 0fc71e6

Browse files
authored
Merge pull request #392 from iBlueDust/master
fix: construct IORedis with strings
2 parents 9478dfa + c9db503 commit 0fc71e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redis-pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type OnMessage<T> = (message: T) => void;
77
type DeserializerContext = { channel: string, pattern?: string };
88

99
export interface PubSubRedisOptions {
10-
connection?: RedisOptions;
10+
connection?: RedisOptions | string;
1111
triggerTransform?: TriggerTransform;
1212
connectionListener?: (err: Error) => void;
1313
publisher?: RedisClient;

0 commit comments

Comments
 (0)