Skip to content

Commit 337430b

Browse files
kdupreydstaley
andauthored
fix(backend): Correct WaitlistEntryAPI list return type and export WaitlistEntry (#7280)
Signed-off-by: Kenton Duprey <[email protected]> Co-authored-by: Dylan Staley <[email protected]>
1 parent 8734ef5 commit 337430b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/open-streets-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': minor
3+
---
4+
5+
Fix TypeScript return type for `clerk.client.waitlistEntries.list()` and export `WaitlistEntry` type.

packages/backend/src/api/endpoints/WaitlistEntryApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class WaitlistEntryAPI extends AbstractAPI {
3737
* @param params Optional parameters (e.g., `query`, `status`, `orderBy`).
3838
*/
3939
public async list(params: WaitlistEntryListParams = {}) {
40-
return this.request<PaginatedResourceResponse<WaitlistEntry>>({
40+
return this.request<PaginatedResourceResponse<WaitlistEntry[]>>({
4141
method: 'GET',
4242
path: basePath,
4343
queryParams: params,

packages/backend/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export type {
145145
Token,
146146
User,
147147
TestingToken,
148+
WaitlistEntry,
148149
BillingPlan,
149150
BillingSubscription,
150151
BillingSubscriptionItem,

0 commit comments

Comments
 (0)