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
Typescript Support #3
Conversation
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.
Thanks for your contribution! I've added some comments.
src/GoBoard.d.ts
Outdated
private _players: [Sign, Sign] | ||
private _captures: [number, number] | ||
private _koInfo: {sign: Sign; vertex: Vertex} |
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.
These are implementation details, so please remove them as well.
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.
Removed in 9ce2874
Some functions use |
Maybe it would be better, yeah. I don't think it makes a technical difference to TypeScript, though. |
Is it all fine? Is there any part still need to be changed? |
Thanks a lot! |
Add
*.d.ts
files to make this package supported Typescript.Please check that all type derivation in
*.d.ts
files are right.