-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #5 - add TS types definitions #62
Conversation
* @param {ClientOpts} [options] node_redis options | ||
* @param {string | import('redis').RedisClient} [host] Redis host or node_redis client | ||
* @param {string | number} [port] Redis port (integer) | ||
* @param {Object} [options] node_redis options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't import this object to here?
*/ | ||
getStringValue(label) { | ||
return this.getStatistics()[label]; | ||
} | ||
|
||
/** | ||
* Return the query statistics | ||
* @return {Statistics} statistics object | ||
* @return {Object<string, string>} statistics object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we return the Statistics
object itself?
tsconfig.json
Outdated
"emitDeclarationOnly": true, | ||
"outDir": "./types" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an empty line
No description provided.