elysiajs / eden

Fully type-safe Elysia client
MIT License
147 stars 37 forks source link

fix(treaty2): use null as default error value #69

Closed 0xmarko closed 5 months ago

0xmarko commented 5 months ago

Fixes this issue.

If data is defined, error should be null, not undefined.

This commit fixed half the problem, setting data to null instead of undefined when the request errors. This does the same for error.