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

Export svgGeometry to @flow. #936

Merged
merged 1 commit into from
Oct 15, 2017
Merged

Conversation

marcianx
Copy link
Collaborator

Straightforward constant-only file. I was explicit with the type as I've become more paranoid about flow's type inference. However, I'm also happy to remove it if you prefer.

// sqrtMain path geometry is from glyph U221A in the font KaTeX Main
sqrtMain: `M95 622c-2.667 0-7.167-2.667-13.5
"sqrtMain": `M95 622c-2.667 0-7.167-2.667-13.5
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to remove all the quotes I introduced in this commit. I was just a little surprised that all these unquoted keys worked as I'm used to the Google Closure Compiler that renames struct fields but not string keys.

Copy link
Member

@kevinbarabash kevinbarabash left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for switching the keys back.

@kevinbarabash kevinbarabash merged commit 06aec05 into KaTeX:master Oct 15, 2017
@marcianx marcianx deleted the flow-svgGeometry branch October 15, 2017 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants