Skip to content

Commit

Permalink
test: add
Browse files Browse the repository at this point in the history
  • Loading branch information
kotarella1110 committed Apr 26, 2022
1 parent e160594 commit c2cd118
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/typings/rest.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,11 @@ rest.get<string>('/user', (req) => {
rest.post<{ userId: string }>('/user', (req) => {
req.body.userId.toUpperCase()
})

interface Params {
userId: string
}

rest.get<never, Params>('/user', (req) => {
req.params
})

0 comments on commit c2cd118

Please sign in to comment.