diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index 40d6f820ab..a846092f7c 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -108,13 +108,14 @@ export default class Clerk implements ClerkInterface { #lastOrganizationInvitation: OrganizationInvitationResource | null = null; #lastOrganizationMember: OrganizationMembershipResource | null = null; - /** - * @inheritDoc {ClerkInterface.version} - */ get version(): string { return Clerk.version; } + get loaded(): boolean { + return this.#isReady; + } + public constructor(frontendApi: string) { if (!frontendApi) { clerkErrorNoFrontendApi(); diff --git a/packages/types/src/clerk.ts b/packages/types/src/clerk.ts index 24a1944196..e17cb1d65c 100644 --- a/packages/types/src/clerk.ts +++ b/packages/types/src/clerk.ts @@ -50,6 +50,8 @@ export interface Clerk { */ version?: string; + loaded: boolean; + /** Clerk Frontend API string. */ frontendApi: string;