-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add first-party Typescript support #3308
Conversation
@d2fong, since you have a lot of TS experience I've added you as a reviewer to this PR. Since this is an update of the already-working community definition file, I don't expect any major issues -- but please let us know if you notice any red flags or best practices that aren't being followed. Thanks |
@mikekucera, I've cleaned up the commits for this PR so your WebGL API is in a separate commit (3a9c3a1). Let me know if you notice any discrepancies, or if you plan to change the API before the release. Thanks |
Hi Max, I'd love to give this a proper review, but that might take some time since its a big file and I'm new to TypeScript. Are you ok with waiting for a review from me? |
Sounds good |
@maxkfranz I reviewed the specific commits that include your additions to the community ts file. I don't see anything that looks out of place. How would you recommend that I test this out? If I install this branch in cytoscape-web, does this mean we shouldn't need to use the |
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.
I skimmed the file and made some minor comments. The file is quite large and I'm new to TypeScript so I can't really comment on if the overall structure of all the type definitions are correct. My recommendation is to somehow mark the entire file as provisional so that we can fix any problems when the community finds them. We don't want to be locked into an API like we are with Cytoscape Java, at least until this file gets a decent amount of use from the community.
Yes, that's right. You'd need to have package.json point to the branch:
Or if you want to point to a local dir, e.g.:
|
How about this?
|
I've responded to the comments. Thanks for your thoughts. Let me know what you think, and then I'll go ahead and make the planned changes. |
I'm going to resolve the comment threads for which we've decided what to do. I'll leave open the ones that may need more discussion. |
Just bumping this in case you missed it. The thread is pretty long |
Sounds good. |
Great, thanks |
I've made all your suggested changes in the latest commits. I'll merge this in on Monday, and then I'll make the release. |
Cross-references to related issues. If there is no existing issue that describes your bug or feature request, then create an issue before making your pull request.
Associated issues:
Notes re. the content of the pull request. Give context to reviewers or serve as a general record of the changes made. Add a screenshot or video to demonstrate your new feature, if possible.
import cytoscape
will use the latest definition file.Checklist
Author:
unstable
. Bug-fix patches can go on eitherunstable
ormaster
.Reviewers:
master
branch and theunstable
branch. Normally, this just requires cherry-picking the corresponding merge commit frommaster
tounstable
-- or vice versa.