Skip to content
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

Merged
merged 4 commits into from
Feb 16, 2021
Merged

Conversation

leibale
Copy link
Collaborator

@leibale leibale commented Feb 14, 2021

No description provided.

* @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
Copy link
Contributor

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
Copy link
Contributor

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"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an empty line

@DvirDukhan DvirDukhan merged commit 530d043 into RedisGraph:master Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants