Skip to content

Commit

Permalink
Specify @flow everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Jul 25, 2018
1 parent c9b24ee commit 563789f
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ all=error
unsafe-getters-setters=off

[options]
all=true
module.use_strict=true
munge_underscores=true
include_warnings=true
Expand Down
2 changes: 2 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import * as yaml from 'yaml-js';
import yargs from 'yargs';
import stringifyJson from 'json-stringify-pretty-compact';
Expand Down
2 changes: 2 additions & 0 deletions src/collector/context.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';
import type {Node} from '@babel/types';

Expand Down
2 changes: 2 additions & 0 deletions src/collector/declarations.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';

// @see flow#5376.
Expand Down
2 changes: 2 additions & 0 deletions src/collector/definitions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';

// @see flow#5376.
Expand Down
2 changes: 2 additions & 0 deletions src/collector/globals.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';

import {invariant} from '../utils';
Expand Down
2 changes: 2 additions & 0 deletions src/collector/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import * as fs from 'fs';
import * as pathlib from 'path';
import wu from 'wu';
Expand Down
2 changes: 2 additions & 0 deletions src/collector/module.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import * as pathlib from 'path';
import * as resolve from 'resolve';

Expand Down
2 changes: 2 additions & 0 deletions src/collector/pragmas.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import {invariant} from '../utils';

import type {Type} from '../types';
Expand Down
2 changes: 2 additions & 0 deletions src/collector/query.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import type {Node} from '@babel/types';

import type Scope from './scope';
Expand Down
2 changes: 2 additions & 0 deletions src/collector/scope.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';
import type {Node} from '@babel/types';

Expand Down
2 changes: 2 additions & 0 deletions src/collector/traverse.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import type {Node} from '@babel/types';
import {VISITOR_KEYS} from '@babel/types';

Expand Down
2 changes: 2 additions & 0 deletions src/fund.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import {invariant} from './utils';
import type {TypeId, Type} from './types';

Expand Down
2 changes: 2 additions & 0 deletions src/generators/jsonSchema.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import wu from 'wu';

import {invariant, collect, partition} from '../utils';
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import Parser from './parser';
import Collector from './collector';
import type {Type} from './types';
Expand Down
2 changes: 2 additions & 0 deletions src/parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import * as babylon from 'babylon';
import type {File} from '@babel/types';

Expand Down
2 changes: 2 additions & 0 deletions src/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

export type Type =
| RecordType
| ArrayType
Expand Down
2 changes: 2 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

import * as assert from 'assert';

// I so much dream about the user guards...
Expand Down

0 comments on commit 563789f

Please sign in to comment.