1
0
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:
leibale
2021-12-23 17:17:19 -05:00
parent b37038e9dc
commit b97d18b610
10 changed files with 42 additions and 34 deletions

View File

@ -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;
}