(
key: K,
value: V
)
| 1075 | } |
| 1076 | |
| 1077 | private _commandOptionsProxy< |
| 1078 | K extends keyof CommandOptions, |
| 1079 | V extends CommandOptions[K] |
| 1080 | >( |
| 1081 | key: K, |
| 1082 | value: V |
| 1083 | ) { |
| 1084 | const proxy = Object.create(this._self); |
| 1085 | proxy._commandOptions = { ...this._commandOptions, [key]: value }; |
| 1086 | return proxy as RedisClientType< |
| 1087 | M, |
| 1088 | F, |
| 1089 | S, |
| 1090 | RESP, |
| 1091 | K extends 'typeMapping' ? V extends TypeMapping ? V : {} : TYPE_MAPPING |
| 1092 | >; |
| 1093 | } |
| 1094 | |
| 1095 | /** |
| 1096 | * Override the `typeMapping` command option |
no test coverage detected