(
key: K,
value: V
)
| 366 | // accessible through the prototype chain, which would force the helper to |
| 367 | // be called via `this._self`, discarding any prior proxy overrides. |
| 368 | private _commandOptionsProxy< |
| 369 | K extends keyof CommandOptions, |
| 370 | V extends CommandOptions[K] |
| 371 | >( |
| 372 | key: K, |
| 373 | value: V |
| 374 | ) { |
| 375 | const proxy = Object.create(this._self); |
| 376 | proxy._commandOptions = { ...this._commandOptions, [key]: value }; |
| 377 | return proxy as RedisClientPoolType< |
| 378 | M, |
| 379 | F, |
| 380 | S, |
| 381 | RESP, |
| 382 | K extends 'typeMapping' ? V extends TypeMapping ? V : {} : TYPE_MAPPING |
| 383 | >; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Override the `typeMapping` command option |
no test coverage detected