Skip to content

Commit

Permalink
refactor(examples-typescript): adjust api return type
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorsalgado committed Dec 9, 2021
1 parent 8875bd2 commit 8c59796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PartiesAPI {
@GET('/partidos')
@ContentType(MediaTypes.APPLICATION_JSON)
@Accept(MediaTypes.APPLICATION_JSON)
parties(@Query('sigla') acronym: string): Promise<Party[]> {
parties(@Query('sigla') acronym: string): Promise<{ dados: Party[] }> {
return noop(acronym)
}
}
Expand Down

0 comments on commit 8c59796

Please sign in to comment.