Skip to content

Instantly share code, notes, and snippets.

@noahlt
Last active August 29, 2015 14:19
Show Gist options
  • Save noahlt/ef5648a565ada2c1ed1e to your computer and use it in GitHub Desktop.
Save noahlt/ef5648a565ada2c1ed1e to your computer and use it in GitHub Desktop.
flow check: declare module
[ignore]
[include]
[libs]
./lib.js
[options]
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;
}
$ flow check
/Users/noah/tmp/flow_import/app/app.js:3:1,9: identifier TweenLite
Unknown global name
Found 1 error
/* @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