Skip to content

Commit

Permalink
add flow control files
Browse files Browse the repository at this point in the history
  • Loading branch information
sghall committed Jan 20, 2017
1 parent 7f54eaa commit 04fc5bc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions flow/interfaces/mocha.js
@@ -0,0 +1,22 @@
type TestFunction = ((done: () => void) => void | Promise<mixed>);

declare var describe : {
(name:string, spec:() => void): void;
only(description:string, spec:() => void): void;
skip(description:string, spec:() => void): void;
timeout(ms:number): void;
};

declare var context : typeof describe;

declare var it : {
(name:string, spec?:TestFunction): void;
only(description:string, spec:TestFunction): void;
skip(description:string, spec:TestFunction): void;
timeout(ms:number): void;
};

declare function before(method : TestFunction):void;
declare function beforeEach(method : TestFunction):void;
declare function after(method : TestFunction):void;
declare function afterEach(method : TestFunction):void;
7 changes: 7 additions & 0 deletions flow/interfaces/webpack.js
@@ -0,0 +1,7 @@
declare var module : {
hot : {
accept(path:string, callback:() => void): void;
};
};

declare var require: any;
1 change: 1 addition & 0 deletions flow/stubs/url-loader.js
@@ -0,0 +1 @@
export default '';

0 comments on commit 04fc5bc

Please sign in to comment.