You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those wondering how to add URL types today: you can pass a custom record to the stringify() and parse() functions to specify parsing behavior. The following will encode and decode URL objects as expected:
I was surprised to learn that this package didn't support URL types, especially as they have a
toJSON
method natively.Date
andRegExp
types are supported, so I figured URLs were a pretty clear case.Is this something that can be added?
The text was updated successfully, but these errors were encountered: