Skip to content

Commit

Permalink
🆕 Add decls for flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Steel Brain committed Aug 26, 2016
1 parent 808811c commit 913890f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
lib/
decls/
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ lib/*
[include]

[libs]
decls

[options]
module.system=node
Expand Down
14 changes: 14 additions & 0 deletions decls/atom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* @flow */

declare var atom: Object;

declare module 'atom' {
declare var Point: any;
declare var Range: any;
declare var Panel: any;
declare var TextEditor: any;
declare var TextBuffer: any;
declare var BufferMarker: any;
declare var TextEditorGutter: any;
declare var TextEditorMarker: any;
}
9 changes: 9 additions & 0 deletions decls/jasmine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* @flow */

declare function it(name: string, callback: (() => void)): void;
declare function fit(name: string, callback: (() => void)): void;
declare function expect(value: any): Object;
declare function describe(name: string, callback: (() => void)): void;
declare function fdescribe(name: string, callback: (() => void)): void;
declare function beforeEach(callback: (() => void)): void;
declare function afterEach(callback: (() => void)): void;

0 comments on commit 913890f

Please sign in to comment.