Skip to content

Commit

Permalink
fix(types): fix return type in themes list (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubentypeform authored Oct 4, 2023
1 parent 0091ea8 commit a74622a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Themes {
public list(args?: {
page?: number
pageSize?: number
}): Promise<Typeform.Theme[]> {
}): Promise<Typeform.API.Themes.List> {
const { page, pageSize } = args || { page: null, pageSize: null }

return this._http.request({
Expand Down
7 changes: 7 additions & 0 deletions src/typeform-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ export namespace Typeform {
items: Response[]
}
}
export namespace Themes {
export interface List {
total_items: number
page_count: number
items: Theme[]
}
}
export namespace Webhooks {
export interface List {
items: Webhook[]
Expand Down

0 comments on commit a74622a

Please sign in to comment.