Adds static typing to JavaScript to improve developer productivity and code quality.
MIT License
Bot releases are hidden (Show)
Published by mroch over 9 years ago
Published by gabelevi over 9 years ago
Likely to cause new Flow errors:
A.foo()
returns a Promise
, and module B requires A and calls A.foo()
, the return type of A.foo()
was not being checked properly)Object<K, V>
errorsnull
and undefined
)New features:
for-of
and support for Iterable
interface(s)async
/await
typeof x
, where x
is the name of an in-scope variablesuppress_comment
, a regexp which matches against comments and causes any Flow error on the next line to be suppressed. For example, suppress_comment=.*\$FlowFixMe.*
will cause /* $FlowFixMe */\nvar x : number = "oops";
to not raise an error.module.name_mapper
, a regexp -> replacement template tuple to be applied to any matching module names before the Flow system resolves the name and looks it up--color=always|never|auto
CLI option, useful when piping to less -R
--one-line
CLI option which replaces \n
with \\n
in multiline error messages, useful when piping to grep
Misc:
export default class
if (x instanceof Array)
x && y
when x
is an array, object or functionflow get-def
command, especially around imported types==
and improved comparison-related error messageslog.file
which overrides the default log file pathPublished by gabelevi over 9 years ago
any
to workaround things that you want to fix later? Well, now you can use $FixMe
instead of any
and easily grep for these workarounds later.require()
'ing/import
'ingflow check --traces N
, where N
is the trace depthObject.freeze()
Published by gabelevi over 9 years ago
Published by gabelevi over 9 years ago
Published by gabelevi over 9 years ago
Published by gabelevi over 9 years ago
for_type
valuePublished by gabelevi over 9 years ago
Published by jeffmo over 9 years ago
x != undefined
and x != null
as the same refinementPublished by gabelevi over 9 years ago
Published by gabelevi over 9 years ago
Published by gabelevi over 9 years ago
Flow comments should be ready for use
Published by gabelevi over 9 years ago
Type casts and import type
should be ready for use
Published by gabelevi over 9 years ago
Published by gabelevi almost 10 years ago
delete
method signaturesPublished by dsereni almost 10 years ago