fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
5.88k stars 181 forks source link

add `awaitAsync` API reference #726

Closed EltonLobo07 closed 1 month ago

EltonLobo07 commented 1 month ago

Since awaitAsync did not have an equivalent sync action (which is obvious but mentioned for context), I had to fill in the "related" schemas, methods, and utils. So I might have made a mistake, especially relating some methods to awaitAsync. I'll share my thoughts:

Let me know if the reasoning is flawed.

fabian-hiller commented 1 month ago

For schemas, it is straightforward, as I can use any schema after awaiting the promise schema. That means, every schema can be listed.

👍

For methods, I copied the list from thepromise schema and separated the sync and async methods properly...

I would only list the pipeAsync method. All other methods are not directly related to awaitAsync.

fabian-hiller commented 1 month ago

Thank you!