Skip to content

Instantly share code, notes, and snippets.

@leonardfactory
Created February 4, 2016 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardfactory/98a90394108b6d08824f to your computer and use it in GitHub Desktop.
Save leonardfactory/98a90394108b6d08824f to your computer and use it in GitHub Desktop.
# v1.
$ flow autocomplete --json --strip-root src/app/components/_test/test2.js 20 10 < src/app/components/_test/test2.js
{"result":[]}
$ flow autocomplete --strip-root src/app/components/_test/test2.js 20 10 < src/app/components/_test/test2.js
extended string
method () => void
prop number
$ flow autocomplete --json --strip-root src/app/components/_test/test2.js 20 10 < src/app/components/_test/test2.js
[{"name":"extended","type":"string","func_details":null,"path":"src/app/components/_test/test2.js","line":11,"endline":11,"start":13,"end":18},{"name":"method","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"src/app/components/_test/test2.js","line":18,"endline":21,"start":3,"end":3},{"name":"prop","type":"number","func_details":null,"path":"src/app/components/_test/test2.js","line":3,"endline":3,"start":9,"end":14}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment