You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
fix some types
This commit is contained in:
@ -10,5 +10,5 @@ export function commandOptions<T>(options: T): CommandOptions<T> {
|
||||
}
|
||||
|
||||
export function isCommandOptions<T>(options: any): options is CommandOptions<T> {
|
||||
return options && options[symbol] === true;
|
||||
return options?.[symbol] === true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user