Skip to content

Commit

Permalink
Add note about structuredClone to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
af committed Dec 12, 2021
1 parent 086609b commit ed843a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ const env = cleanEnv(process.env, {

For more context see [this issue](https://github.com/af/envalid/issues/32).

## FAQ

### Can I call `structuredClone()` on envalid's validated output?

Since by default envalid's output is wrapped in a Proxy, structuredClone [will not work](https://bugzilla.mozilla.org/show_bug.cgi?id=1269327#c1) on it. See [https://github.com/af/envalid/issues/177](#177)


## Related projects

Expand Down

0 comments on commit ed843a1

Please sign in to comment.