Skip to content

Commit 27d2522

Browse files
authored
fix: correct workspace add, get return types
Fixes return types for `Workspaces.add()` and `Workspaces.get()`, which were incorrectly set to `Webhook` instead of `Workspace`.
2 parents 195eac2 + d809344 commit 27d2522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/workspaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isMemberPropValid, createMemberPatchQuery } from './utils'
44
export class Workspaces {
55
constructor (private _http: Typeform.HTTPClient) { }
66

7-
public add (args: { name: string }): Promise<Typeform.Webhook> {
7+
public add (args: { name: string }): Promise<Typeform.Workspace> {
88
const { name } = args
99

1010
if (!name) {
@@ -39,7 +39,7 @@ export class Workspaces {
3939
})
4040
}
4141

42-
public get (args: { id: string }): Promise<Typeform.Webhook> {
42+
public get (args: { id: string }): Promise<Typeform.Workspace> {
4343
const { id } = args
4444

4545
return this._http.request({

0 commit comments

Comments
 (0)