We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it make sense to create a type for serializable objects?
Similar to Jsonify et al., this would match values that could losslessly be deep-copied via structuredClone or postMessage.
structuredClone
postMessage
The text was updated successfully, but these errors were encountered:
How would you use it?
For reference, the algorithm for structuredClone: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
Sorry, something went wrong.
My two use cases are similar to how I currently use the Jsonify family of types:
It's more like Jsonifiable. Could maybe be called StructuredCloneable.
Jsonifiable
StructuredCloneable
No branches or pull requests
Would it make sense to create a type for serializable objects?
Similar to Jsonify et al., this would match values that could losslessly be deep-copied via
structuredClone
orpostMessage
.Upvote & Fund
The text was updated successfully, but these errors were encountered: