Last active
August 29, 2015 14:19
-
-
Save noahlt/ef5648a565ada2c1ed1e to your computer and use it in GitHub Desktop.
flow check: declare module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ignore] | |
| [include] | |
| [libs] | |
| ./lib.js | |
| [options] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module TweenLite { | |
| declare function to(node: Node, duration: number, options: Object): void; | |
| declare function from(node: Node, duration: number, options: Object): void; | |
| declare function set(node: Node, options: Object): void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ flow check | |
| /Users/noah/tmp/flow_import/app/app.js:3:1,9: identifier TweenLite | |
| Unknown global name | |
| Found 1 error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @flow */ | |
| TweenLite.to(document.getElementById("foo"), 250, {height: 0}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment