Skip to content

Commit 0b4db0d

Browse files
authored
chore(types): Apply changes to clerk.retheme.ts (#2232)
1 parent 6e54b1b commit 0b4db0d

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.changeset/neat-lies-thank.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/types/src/clerk.retheme.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,17 @@ export interface Clerk {
5454
/**
5555
* Clerk SDK version number.
5656
*/
57-
version?: string;
57+
version: string | undefined;
5858

5959
/**
6060
* If present, contains information about the SDK that the host application is using.
6161
* For example, if Clerk is loaded through `@clerk/nextjs`, this would be `{ name: '@clerk/nextjs', version: '1.0.0' }`
6262
*/
63-
sdkMetadata?: SDKMetadata;
63+
sdkMetadata: SDKMetadata | undefined;
6464

65+
/**
66+
* If true the bootstrapping of Clerk.load() has completed successfully.
67+
*/
6568
loaded: boolean;
6669

6770
frontendApi: string;
@@ -70,7 +73,7 @@ export interface Clerk {
7073
publishableKey: string;
7174

7275
/** Clerk Proxy url string. */
73-
proxyUrl?: string;
76+
proxyUrl: string | undefined;
7477

7578
/** Clerk Satellite Frontend API string. */
7679
domain: string;
@@ -79,22 +82,22 @@ export interface Clerk {
7982
isSatellite: boolean;
8083

8184
/** Clerk Instance type is defined from the Publishable key */
82-
instanceType?: InstanceType;
85+
instanceType: InstanceType | undefined;
8386

8487
/** Clerk flag for loading Clerk in a standard browser setup */
85-
isStandardBrowser?: boolean;
88+
isStandardBrowser: boolean | undefined;
8689

8790
/** Client handling most Clerk operations. */
88-
client?: ClientResource;
91+
client: ClientResource | undefined;
8992

9093
/** Active Session. */
91-
session?: ActiveSessionResource | null;
94+
session: ActiveSessionResource | null | undefined;
9295

9396
/** Active Organization */
94-
organization?: OrganizationResource | null;
97+
organization: OrganizationResource | null | undefined;
9598

9699
/** Current User. */
97-
user?: UserResource | null;
100+
user: UserResource | null | undefined;
98101

99102
/**
100103
* Signs out the current user on single-session instances, or all users on multi-session instances
@@ -772,8 +775,8 @@ export type UserButtonProps = UserButtonProfileMode & {
772775
*/
773776
showName?: boolean;
774777
/**
775-
Controls the default state of the UserButton
776-
*/
778+
* Controls the default state of the UserButton
779+
*/
777780
defaultOpen?: boolean;
778781
/**
779782
* Full URL or path to navigate after sign out is complete
@@ -825,7 +828,7 @@ type CreateOrganizationMode =
825828
export type OrganizationSwitcherProps = CreateOrganizationMode &
826829
OrganizationProfileMode & {
827830
/**
828-
Controls the default state of the OrganizationSwitcher
831+
* Controls the default state of the OrganizationSwitcher
829832
*/
830833
defaultOpen?: boolean;
831834
/**

0 commit comments

Comments
 (0)