Closed Gozala closed 5 years ago
If it's an external file, could things like that be checked somehow? Even without this patch running flow
won't result in an error.
If it's an external file, could things like that be checked somehow? Even without this patch running
flow
won't result in an error.
Flow will ignore anything that doesn't start with // @flow
in this case it's typedefs which were valid before and are still valid, that's why it will type check.
Only way to keep implementation to comply with type definition is to annotate implementation accordingly. That is to say you could have significant type definitions in separate file and only few comments in the source, but there will still need to be some comments in the source.
Add 4th optional parameter introduced by #77