Skip to content

Export svgGeometry to @flow.#936

Merged
k4b7 merged 1 commit intoKaTeX:masterfrom
marcianx:flow-svgGeometry
Oct 15, 2017
Merged

Export svgGeometry to @flow.#936
k4b7 merged 1 commit intoKaTeX:masterfrom
marcianx:flow-svgGeometry

Conversation

@marcianx
Copy link
Copy Markdown
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.

const path: {[string]: string} = {
// 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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Member

@k4b7 k4b7 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.

@k4b7 k4b7 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