Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor redisgraph.js to Typescript #10

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

Open
DenisCarriere wants to merge 1 commit into RedisGraph:master
base: master
Choose a base branch
Loading
from DenisCarriere:master

Conversation

@DenisCarriere
Copy link

@DenisCarriere DenisCarriere commented Feb 19, 2019

Refactor redisgraph.js to Typescript

Issue Ref: #5

I was very surprised to see Redis wasn't using Typescript, it's rare to see new libraries built using CommonJS syntax.

Sceat reacted with thumbs down emoji renewooller, jonaskello, and FlorianPfisterer reacted with heart emoji
Copy link
Contributor

👏 👏 👏 👏

Copy link
Author

I'll be sending more PR's once this is merged

Copy link
Author

@gkorland would you prefer just adding the Typescript types instead of the entire code being refactored?

Copy link
Contributor

@DenisCarriere I would prefer not to switch to TypeScript, if we need any special things that will help you TypeScript consume the client please feel free to send another PR

Copy link

looks like another one for definitely typed. It's a shame cause I can see they're already getting type errors that you've probably fixed in your refactoring eg #19

Copy link
Contributor

Thanks, @DenisCarriere.
We decided not to refactor our current JS client to TypeScript.
If you like, you can fork and modify it to a TypeScript client. When your work is done, we will be happy to add the reference to your repo.

leibale reacted with thumbs up emoji

Copy link

jonaskello commented Nov 17, 2019
edited
Loading

Just found redisgraph and this lib and was excited to start using it. Well, fired it up and went yarn add --dev @types/redisgraph.js and to my suprise there were no types there. I would tend to agree with the above, this is a fairly new project so I just expected it to be compatible with modern mainstream technologies. To be honest I'm a bit disappointed, now instead of being able to code away on a cool redisgraph project, I'm stuck to solve the typing problem myself which will seriously slow me down :-/.

For reference this was written 2016 and today I guess most people just expect any serious library to just work for typescript: https://staltz.com/all-js-libraries-should-be-authored-in-typescript.html

Copy link

Btw, forking a separate typescript client is probably not a good idea. There are no specific typescript libraries, there are only javascript libraries which provides typescript annotations. If this project does not want to use typescript annotations internally, then it should provide them externally on definetely typed which will then end up published as @types/redisgraph.js.

Copy link

Anything on approving this?

Copy link
Contributor

@jdgamble555 RedisGraph support was moved to node-redis see: https://github.com/redis/node-redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /