Skip to content

Commit

Permalink
test: ignore type errors (it should be fixed with the new version of …
Browse files Browse the repository at this point in the history
…`hono`)
  • Loading branch information
yusukebe committed May 5, 2024
1 parent c876135 commit 576439c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mocks/api/routes/about/[name].ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import { Hono } from 'hono'
const app = new Hono()

app.get('/', (c) => {
const name = c.req.param<'/:name'>('name')
// @ts-expect-error It throws a type error with [email protected]
const name = c.req.param('name')
return c.json({
path: `/about/${name}`,
})
})

app.get('/address', (c) => {
const name = c.req.param<'/:name'>('name')
// @ts-expect-error It throws a type error with [email protected]
const name = c.req.param('name')
return c.json({
path: `/about/${name}/address`,
})
Expand Down

0 comments on commit 576439c

Please sign in to comment.