add some more flow types

This commit is contained in:
Henry Zhu
2015-12-18 01:19:06 -05:00
parent 97fd9d65e7
commit 5f0ece0bdb
4 changed files with 10 additions and 6 deletions

View File

@@ -118,7 +118,7 @@ pp.processComment = function (node) {
// result in an empty array, and if so, the array must be
// deleted.
node.leadingComments = this.state.leadingComments.slice(0, i);
if (node.leadingComments.length === 0) {
if ((node.leadingComments: Array<any>).length === 0) {
node.leadingComments = null;
}