Post

I took the `createPost()` example as a reference, but it wasn’t straightforward to work out exactly what was expected, particularly around return and errors. I also had a couple of anomalies (`error()` was always 500, regardless of the status code - not sure if that is a bug, I haven’t checked).

Typing the `form()` function itself is a really nice touch, allowing the return expectation to be explicit - this works beautifully with @valibot.dev - but I stumbled across that in the declarations, not the docs.

0 reposts0 likes