From 50118839abade7857671533e6cf489462400c967 Mon Sep 17 00:00:00 2001 From: panteliselef Date: Wed, 29 Nov 2023 18:05:19 +0200 Subject: [PATCH] chore(types): Apply changes to clerk.retheme.ts --- .changeset/neat-lies-thank.md | 2 ++ packages/types/src/clerk.retheme.ts | 27 +++++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .changeset/neat-lies-thank.md diff --git a/.changeset/neat-lies-thank.md b/.changeset/neat-lies-thank.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/neat-lies-thank.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/types/src/clerk.retheme.ts b/packages/types/src/clerk.retheme.ts index 691c1807222..1e2ce8ba13f 100644 --- a/packages/types/src/clerk.retheme.ts +++ b/packages/types/src/clerk.retheme.ts @@ -54,14 +54,17 @@ export interface Clerk { /** * Clerk SDK version number. */ - version?: string; + version: string | undefined; /** * If present, contains information about the SDK that the host application is using. * For example, if Clerk is loaded through `@clerk/nextjs`, this would be `{ name: '@clerk/nextjs', version: '1.0.0' }` */ - sdkMetadata?: SDKMetadata; + sdkMetadata: SDKMetadata | undefined; + /** + * If true the bootstrapping of Clerk.load() has completed successfully. + */ loaded: boolean; frontendApi: string; @@ -70,7 +73,7 @@ export interface Clerk { publishableKey: string; /** Clerk Proxy url string. */ - proxyUrl?: string; + proxyUrl: string | undefined; /** Clerk Satellite Frontend API string. */ domain: string; @@ -79,22 +82,22 @@ export interface Clerk { isSatellite: boolean; /** Clerk Instance type is defined from the Publishable key */ - instanceType?: InstanceType; + instanceType: InstanceType | undefined; /** Clerk flag for loading Clerk in a standard browser setup */ - isStandardBrowser?: boolean; + isStandardBrowser: boolean | undefined; /** Client handling most Clerk operations. */ - client?: ClientResource; + client: ClientResource | undefined; /** Active Session. */ - session?: ActiveSessionResource | null; + session: ActiveSessionResource | null | undefined; /** Active Organization */ - organization?: OrganizationResource | null; + organization: OrganizationResource | null | undefined; /** Current User. */ - user?: UserResource | null; + user: UserResource | null | undefined; /** * Signs out the current user on single-session instances, or all users on multi-session instances @@ -772,8 +775,8 @@ export type UserButtonProps = UserButtonProfileMode & { */ showName?: boolean; /** - Controls the default state of the UserButton - */ + * Controls the default state of the UserButton + */ defaultOpen?: boolean; /** * Full URL or path to navigate after sign out is complete @@ -825,7 +828,7 @@ type CreateOrganizationMode = export type OrganizationSwitcherProps = CreateOrganizationMode & OrganizationProfileMode & { /** - Controls the default state of the OrganizationSwitcher + * Controls the default state of the OrganizationSwitcher */ defaultOpen?: boolean; /**