Skip to content

Commit

Permalink
chore: updated flow js
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed Sep 29, 2017
1 parent 337b7a6 commit f375b2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions __tests__/test.js
Expand Up @@ -32,6 +32,7 @@ function readOptionsFromFile(file) {

if (fs.existsSync(path.join(__dirname, '../.git'))) {
test('git option', async function() {
jest.setTimeout(10000); // 10 second timeout. After update flow.js on 0.56 version the test is executed more time.
var file = path.join(__dirname, './fixture/simple.input.js');
const result = await documentation.build([file], { github: true });
normalize(result);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -71,7 +71,7 @@
"eslint": "^4.1.1",
"eslint-config-prettier": "^2.3.0",
"eslint-plugin-flowtype": "^2.34.1",
"flow-bin": "^0.53.0",
"flow-bin": "^0.56.0",
"fs-extra": "^4.0.0",
"husky": "^0.14.0",
"jest": "^21.2.1",
Expand Down
9 changes: 6 additions & 3 deletions src/sort.js
Expand Up @@ -19,10 +19,13 @@ module.exports = function sortDocs(comments: Array<Comment>, options: Object) {
return sortComments(comments, options && options.sortOrder);
}
let i = 0;
const indexes: { [?string]: number } = Object.create(null);
const toBeSorted: { [?string]: boolean } = Object.create(null);
const indexes: { [?string]: number, __proto__: null } = Object.create(null);
const toBeSorted: { [?string]: boolean, __proto__: null } = Object.create(
null
);
const paths: {
[?string]: Array<{ scope: Scope, name: string }>
[?string]: Array<{ scope: Scope, name: string }>,
__proto__: null
} = Object.create(null);
const fixed = [];
const walk = function(tocPath, val) {
Expand Down

0 comments on commit f375b2b

Please sign in to comment.