elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.23k stars 198 forks source link

add mapResponse support stream type #587

Open chakeawx opened 3 months ago

chakeawx commented 3 months ago

What is the problem this feature would solve?

add type on mapResponse to support stream

.mapResponse(({ response }) => { if (response instanceof Stream) { return response } })

What is the feature you are proposing to solve the problem?

.

What alternatives have you considered?

No response