Skip to content

Commit a74622a

Browse files
fix(types): fix return type in themes list (#82)
1 parent 0091ea8 commit a74622a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/themes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Themes {
3636
public list(args?: {
3737
page?: number
3838
pageSize?: number
39-
}): Promise<Typeform.Theme[]> {
39+
}): Promise<Typeform.API.Themes.List> {
4040
const { page, pageSize } = args || { page: null, pageSize: null }
4141

4242
return this._http.request({

src/typeform-types.ts

+7
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ export namespace Typeform {
9494
items: Response[]
9595
}
9696
}
97+
export namespace Themes {
98+
export interface List {
99+
total_items: number
100+
page_count: number
101+
items: Theme[]
102+
}
103+
}
97104
export namespace Webhooks {
98105
export interface List {
99106
items: Webhook[]

0 commit comments

Comments
 (0)