Skip to content

Commit 7d7cc3a

Browse files
committed
fix(types): PublicOrganizationDataJSON should not extend ClerkResourceJSON
1 parent 5b999c1 commit 7d7cc3a

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

packages/types/src/json.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -364,29 +364,23 @@ export interface OrganizationDomainJSON extends ClerkResourceJSON {
364364
updated_at: number;
365365
}
366366

367+
export interface PublicOrganizationDataJSON {
368+
id: string;
369+
name: string;
370+
slug: string | null;
371+
has_image: boolean;
372+
image_url: string;
373+
}
374+
367375
export interface OrganizationSuggestionJSON extends ClerkResourceJSON {
368376
object: 'organization_suggestion';
369377
id: string;
370-
public_organization_data: {
371-
id: string;
372-
name: string;
373-
slug: string | null;
374-
has_image: boolean;
375-
image_url: string;
376-
};
378+
public_organization_data: PublicOrganizationDataJSON;
377379
status: OrganizationSuggestionStatus;
378380
created_at: number;
379381
updated_at: number;
380382
}
381383

382-
export interface PublicOrganizationDataJSON extends ClerkResourceJSON {
383-
id: string;
384-
name: string;
385-
slug: string | null;
386-
has_image: boolean;
387-
image_url: string;
388-
}
389-
390384
export interface OrganizationSuggestionJSON extends ClerkResourceJSON {
391385
object: 'organization_suggestion';
392386
id: string;

0 commit comments

Comments
 (0)