Closed Tomtec331 closed 5 days ago
I tried to use testMiddleware which is mentioned in the documentation but it cannot be imported. Looking at index.ts, I found that only testEndpoint is currently exported.
testMiddleware
index.ts
testEndpoint
See: https://github.com/RobinTail/express-zod-api/blob/388cc941ef854e08a886e7832fc253bf822c4be6/src/index.ts#L32
The testMiddleware function should be exported.
Just try to import testMiddleware and it will fail.
express-zod-api
Yeah, that's true. Sorry for that, and thank you for informing me. Will fix ASAP, @Tomtec331
🚀 Fixed in v20.14.3, @Tomtec331 Thank you for the contribution!
Description
I tried to use
testMiddleware
which is mentioned in the documentation but it cannot be imported. Looking atindex.ts
, I found that onlytestEndpoint
is currently exported.See: https://github.com/RobinTail/express-zod-api/blob/388cc941ef854e08a886e7832fc253bf822c4be6/src/index.ts#L32
Expected
The
testMiddleware
function should be exported.Reproduction
Just try to import
testMiddleware
and it will fail.Context
express-zod-api
version: 20.14.2