Skip to content

Commit

Permalink
Update to Flow 0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Dec 2, 2015
1 parent 404f6c6 commit a30c5d0
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"coveralls": "2.10.x",
"envify": "^3.4.0",
"exorcist": "^0.4.0",
"flow-bin": "^0.17.0",
"flow-bin": "^0.19.0",
"http-server": "^0.8.0",
"istanbul": "^0.3.17",
"jsxhint": "git://github.com/strml/JSXHint.git",
Expand Down
2 changes: 1 addition & 1 deletion src/main/Alignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @flow
*/

import type * as ContigInterval from './ContigInterval';
import type ContigInterval from './ContigInterval';

// "CIGAR" operations express how a sequence aligns to the reference: does it
// have insertions? deletions? For more background, see the SAM/BAM paper.
Expand Down
2 changes: 1 addition & 1 deletion src/main/Controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var utils = require('./utils'),
Interval = require('./Interval');

type Props = {
range: GenomeRange;
range: ?GenomeRange;
contigList: string[];
onChange: (newRange: GenomeRange)=>void;
};
Expand Down
2 changes: 1 addition & 1 deletion src/main/CoverageTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'use strict';

import type {Alignment, AlignmentDataSource} from './Alignment';
import type * as Interval from './Interval';
import type Interval from './Interval';
import type {TwoBitSource} from './TwoBitDataSource';
import type {DataCanvasRenderingContext2D} from 'data-canvas';
import type {BinSummary} from './CoverageCache';
Expand Down
2 changes: 1 addition & 1 deletion src/main/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Props = {
onSelect: (key: string) => void;
};

class Menu extends React.Component<{}, Props, void> {
class Menu extends React.Component<void, Props, void> {
props: Props;

clickHandler(idx: number, e: SyntheticMouseEvent) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/PileupTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {TwoBitSource} from './TwoBitDataSource';
import type {BasePair} from './pileuputils';
import type {VisualAlignment, VisualGroup, InsertStats} from './PileupCache';
import type {DataCanvasRenderingContext2D} from 'data-canvas';
import type * as Interval from './Interval';
import type Interval from './Interval';
import type {VizProps} from './VisualizationWrapper';

var React = require('react'),
Expand Down
2 changes: 1 addition & 1 deletion src/main/SamRead.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
'use strict';

import type * as VirtualOffset from './VirtualOffset';
import type VirtualOffset from './VirtualOffset';
import type {Strand, CigarOp, MateProperties} from './Alignment';

var jDataView = require('jdataview'),
Expand Down
2 changes: 1 addition & 1 deletion src/main/TwoBit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var Q = require('q'),
_ = require('underscore'),
jBinary = require('jbinary');

import type * as RemoteFile from './RemoteFile';
import type RemoteFile from './RemoteFile';

var twoBitTypes = require('./formats/twoBitTypes');

Expand Down
4 changes: 2 additions & 2 deletions src/main/bai.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/
'use strict';

import type * as RemoteFile from './RemoteFile';
import type * as ContigInterval from './ContigInterval';
import type RemoteFile from './RemoteFile';
import type ContigInterval from './ContigInterval';
import type {Chunk} from './types';

var jBinary = require('jbinary'),
Expand Down
2 changes: 1 addition & 1 deletion src/main/bam.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
'use strict';

import type * as RemoteFile from './RemoteFile';
import type RemoteFile from './RemoteFile';

var jBinary = require('jbinary'),
jDataView = require('jdataview'),
Expand Down
4 changes: 2 additions & 2 deletions src/main/pileuputils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** @flow */
'use strict';

import type * as SamRead from './SamRead';
import type SamRead from './SamRead';
import type {Alignment, CigarSymbol} from './Alignment';
import type * as Interval from './Interval';
import type Interval from './Interval';

/**
* Given a list of Intervals, return a parallel list of row numbers for each.
Expand Down
4 changes: 2 additions & 2 deletions src/main/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// Public API

import type * as React from 'react';
import type React from 'react';

export type VizWithOptions = {
component: ReactClass;
Expand Down Expand Up @@ -48,7 +48,7 @@ export type PartialGenomeRange = {

// BAM/BAI parsing

import type * as VirtualOffset from './VirtualOffset';
import type VirtualOffset from './VirtualOffset';

export type Chunk = {
chunk_beg: VirtualOffset;
Expand Down
2 changes: 1 addition & 1 deletion src/main/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'use strict';

import type {InflatedBlock, PartialGenomeRange} from './types';
import type * as Q from 'q';
import type Q from 'q';

var pako = require('pako/lib/inflate'),
_ = require('underscore');
Expand Down
6 changes: 3 additions & 3 deletions src/main/vcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/
'use strict';

import type * as ContigInterval from './ContigInterval';
import type * as RemoteFile from './RemoteFile';
import type * as Q from 'q';
import type ContigInterval from './ContigInterval';
import type RemoteFile from './RemoteFile';
import type Q from 'q';

export type Variant = {
contig: string;
Expand Down
2 changes: 1 addition & 1 deletion src/test/CoverageTrack-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

var expect = require('chai').expect;

import type * as SamRead from '../main/SamRead';
import type SamRead from '../main/SamRead';

var pileup = require('../main/pileup'),
TwoBit = require('../main/TwoBit'),
Expand Down
2 changes: 1 addition & 1 deletion src/test/PileupTrack-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var expect = require('chai').expect;
var Q = require('q'),
_ = require('underscore');

import type * as SamRead from '../main/SamRead';
import type SamRead from '../main/SamRead';

var pileup = require('../main/pileup'),
TwoBit = require('../main/TwoBit'),
Expand Down
2 changes: 1 addition & 1 deletion src/test/RecordedRemoteFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

import type * as Q from 'q';
import type Q from 'q';

var _ = require('underscore');

Expand Down
4 changes: 2 additions & 2 deletions src/test/SamRead-test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* @flow */
'use strict';

import type * as Q from 'q';
import type * as SamRead from '../main/SamRead';
import type Q from 'q';
import type SamRead from '../main/SamRead';

var expect = require('chai').expect;

Expand Down
2 changes: 1 addition & 1 deletion src/test/pileuputils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var {pileup, addToPileup, getOpInfo} = require('../main/pileuputils'),
Bam = require('../main/bam'),
RemoteFile = require('../main/RemoteFile');

import type * as SamRead from '../main/SamRead';
import type SamRead from '../main/SamRead';

describe('pileuputils', function() {
// This checks that pileup's guarantee is met.
Expand Down

0 comments on commit a30c5d0

Please sign in to comment.