arb / celebrate

A joi validation middleware for Express.
MIT License
1.33k stars 66 forks source link

Examples in TypeScript too #232

Closed TomMiller-mas closed 2 years ago

TomMiller-mas commented 2 years ago

This package looks awesome, but I am new to javascript and TypeScript and really need an example of the syntax for TypeScript. Please don't put the schema inside the route. I want to use the same route for inserts and updates and need an example of the syntax of consuming a stand-alone schema (which I can't find anywhere).

A schema based on a user would be great: email, password, phone number, etc.

A couple of post routes: Insert and Update

I hope you will put something together.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Jendorski commented 2 years ago

Honestly, a typescript example is needed, thank you.