RobinTail / express-zod-api

A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.
https://ez.robintail.cz
MIT License
619 stars 30 forks source link

Replacing `tsd` with `vitest` type assertions. #1893

Closed RobinTail closed 3 months ago

RobinTail commented 3 months ago

Reducing dependencies that way.

https://vitest.dev/api/expect-typeof.html#expecttypeof

This PR also fixes a typo in JSDoc and adds missing type constraint test for ZodObject.

coveralls-official[bot] commented 3 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 14a68c25071311892877ae31d5ff7beef50256fd on no-tsd into ae3bd3957c6f7da1eda9c4e9c169b6547cc60b03 on master.