Open LoganBarnett opened 5 years ago
The updated libdef was merged into flow-typed
and I've updated the PR to use the official version instead of the manual copy.
@andreypopp @Alxandr hey folks - is there anything I can do to help merge this PR? I've recently had to touch on some older work which is depending on a fork of this so it can use a more modern version of Flow.
Thanks!
Unfortunately I basically have no memory of this (nor use flow anymore) - so I'm probably not the right person to make any calls here.
This upgrades to flow-bin 0.95.1, which includes an update to
JSON.stringify
. This update meansstringify
can returnstring | undefined
(undefined
is covered by a few edge cases). Flow does not acceptundefined
in string interpolations, so the string "undefined" has been used in these cases as a fix.indent-string
changed its signature in 3.2.0. The updated libdef has been submitted toflow-typed
(see https://github.com/flow-typed/flow-typed/pull/3219) but until it is accepted the libdef has been copied here manually. Uses of theindent
call have been fixed. It is suspected that the upgrade of Flow has increased type coverage here and flagged this as an error, because this should have otherwise gone undetected.