Closed not-ivy closed 1 year ago
Hi @not-ivy , please find out a complete example below:
import zero from '0http'
import { Protocol } from '0http/common'
const { router, server } = zero<Protocol.HTTP>()
router.use((req, res, next) => {
return next()
})
router.get('/hi', (req, res) => {
res.end(`Hello World from TS!`)
})
server.listen(3000)
Describe the bug
This expression is not callable.
error when using 0http.To Reproduce
Expected behavior cero should be able to be called and the
router
andserver
should be able to be used.Additional context
0http version: 3.5.1 typescript version: 5.0.4