Port symbol.js to @flow. (#858)

* Port symbol.js to @flow.

* Add a `Mode` @flow type and use it in `ParseNode`.
This commit is contained in:
Ashish Myles
2017-09-09 17:54:47 -04:00
committed by GitHub
parent 0f9fb0a1ce
commit 9e330194b8
3 changed files with 37 additions and 13 deletions

9
src/types.js Normal file
View File

@@ -0,0 +1,9 @@
// @flow
/**
* This file consists only of basic flow types used in multiple places.
* For types with javascript, create separate files by themselves.
*/
export type Mode = "math" | "text";