( options: RedisSentinelOptions<M, F, S, RESP, TYPE_MAPPING> )
| 124 | > = genericRedisSentinelType<RedisDefaultModules & M, F, S, RESP, TYPE_MAPPING>; |
| 125 | |
| 126 | export function createSentinel< |
| 127 | M extends RedisModules = {}, |
| 128 | F extends RedisFunctions = {}, |
| 129 | S extends RedisScripts = {}, |
| 130 | RESP extends RespVersions = 3, |
| 131 | TYPE_MAPPING extends TypeMapping = {} |
| 132 | >( |
| 133 | options: RedisSentinelOptions<M, F, S, RESP, TYPE_MAPPING> |
| 134 | ): RedisSentinelType<M, F, S, RESP, TYPE_MAPPING> { |
| 135 | return genericCreateSentinel({ |
| 136 | ...options, |
| 137 | modules: { |
| 138 | ...modules, |
| 139 | ...(options?.modules as M) |
| 140 | } |
| 141 | }) as RedisSentinelType<M, F, S, RESP, TYPE_MAPPING>; |
| 142 | } |
| 143 |
no outgoing calls
no test coverage detected