mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-08 08:44:37 +08:00
d.toJSON() now answers the toISOString() string for a valid date and null for an invalid one, as a string | null value although the lib types say string. Unannotated bindings, object and array literal entries initialized by it keep the null, reads of such bindings stay checked, and JSON.stringify serializes the null instead of narrowing it to string. Closes #935 Co-authored-by: phall <25888173+phall1@users.noreply.github.com>