Skip to content

Commit

Permalink
fix(typescript): bundle type in processBundle method
Browse files Browse the repository at this point in the history
  • Loading branch information
krvital committed Nov 6, 2024
1 parent 544aa1a commit 5c6c9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/sdk/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ export class Client<T extends BasicAuthorization | ResourceOwnerAuthorization> {
}

resource = {
processBundle: (data: Bundle): Promise<Bundle> => {
processBundle: (data: ResourceTypeMap['Bundle']): Promise<ResourceTypeMap['Bundle']> => {
return this.client
.post(buildResourceUrl(''), { json: data })
.json<Bundle>();
.json<ResourceTypeMap['Bundle']>();
},
conditionalUpdate: <T extends keyof ResourceTypeMap>(
resourceName: T,
Expand Down

0 comments on commit 5c6c9f1

Please sign in to comment.