diff --git a/.eslintignore b/.eslintignore index c3af857..bf6fbcd 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ lib/ +decls/ diff --git a/.flowconfig b/.flowconfig index 08d9fed..84d2e9c 100644 --- a/.flowconfig +++ b/.flowconfig @@ -4,6 +4,7 @@ lib/* [include] [libs] +decls [options] module.system=node diff --git a/decls/atom.js b/decls/atom.js new file mode 100644 index 0000000..4ce5103 --- /dev/null +++ b/decls/atom.js @@ -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; +} diff --git a/decls/jasmine.js b/decls/jasmine.js new file mode 100644 index 0000000..7d563f1 --- /dev/null +++ b/decls/jasmine.js @@ -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;