Skip to content

Commit a7f0e09

Browse files
Merge branch 'main' into heat/grow-668-additional-metadata-headers-for-keyless-app-creation-post
2 parents 343526c + 15fe106 commit a7f0e09

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

.changeset/full-times-wear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/types': patch
3+
---
4+
5+
Convert LocalizationResource to interface for typedoc documentation

.typedoc/custom-plugin.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ const LINK_REPLACEMENTS = [
5353
['saml-account', '/docs/references/backend/types/backend-saml-account'],
5454
['web3-wallet', '/docs/references/backend/types/backend-web3-wallet'],
5555
['verify-token-options', '#verify-token-options'],
56+
['localization-resource', '/docs/customization/localization'],
57+
['commerce-subscription-item-resource', '/docs/references/javascript/types/commerce-subscription-item-resource'],
5658
];
5759

5860
/**
@@ -85,10 +87,6 @@ function getCatchAllReplacements() {
8587
pattern: /\(setActiveParams\)/g,
8688
replace: '([setActiveParams](/docs/references/javascript/types/set-active-params))',
8789
},
88-
{
89-
pattern: /`_LocalizationResource`/g,
90-
replace: '[Localization](/docs/customization/localization)',
91-
},
9290
{
9391
pattern: /`LoadedClerk`/g,
9492
replace: '[Clerk](/docs/references/javascript/clerk)',

packages/types/src/clerk.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -653,31 +653,31 @@ export interface Clerk {
653653
buildUrlWithAuth(to: string): string;
654654

655655
/**
656-
* Returns the configured url where <SignIn/> is mounted or a custom sign-in page is rendered.
656+
* Returns the configured url where `<SignIn/>` is mounted or a custom sign-in page is rendered.
657657
*
658658
* @param opts A {@link RedirectOptions} object
659659
*/
660660
buildSignInUrl(opts?: RedirectOptions): string;
661661

662662
/**
663-
* Returns the configured url where <SignUp/> is mounted or a custom sign-up page is rendered.
663+
* Returns the configured url where `<SignUp/>` is mounted or a custom sign-up page is rendered.
664664
*
665665
* @param opts A {@link RedirectOptions} object
666666
*/
667667
buildSignUpUrl(opts?: RedirectOptions): string;
668668

669669
/**
670-
* Returns the url where <UserProfile /> is mounted or a custom user-profile page is rendered.
670+
* Returns the url where `<UserProfile />` is mounted or a custom user-profile page is rendered.
671671
*/
672672
buildUserProfileUrl(): string;
673673

674674
/**
675-
* Returns the configured url where <CreateOrganization /> is mounted or a custom create-organization page is rendered.
675+
* Returns the configured url where `<CreateOrganization />` is mounted or a custom create-organization page is rendered.
676676
*/
677677
buildCreateOrganizationUrl(): string;
678678

679679
/**
680-
* Returns the configured url where <OrganizationProfile /> is mounted or a custom organization-profile page is rendered.
680+
* Returns the configured url where `<OrganizationProfile />` is mounted or a custom organization-profile page is rendered.
681681
*/
682682
buildOrganizationProfileUrl(): string;
683683

@@ -707,7 +707,7 @@ export interface Clerk {
707707
buildAfterMultiSessionSingleSignOutUrl(): string;
708708

709709
/**
710-
* Returns the configured url where <Waitlist/> is mounted or a custom waitlist page is rendered.
710+
* Returns the configured url where `<Waitlist/>` is mounted or a custom waitlist page is rendered.
711711
*/
712712
buildWaitlistUrl(opts?: { initialValues?: Record<string, string> }): string;
713713

@@ -720,31 +720,31 @@ export interface Clerk {
720720
redirectWithAuth(to: string): Promise<unknown>;
721721

722722
/**
723-
* Redirects to the configured URL where <SignIn/> is mounted.
723+
* Redirects to the configured URL where `<SignIn/>` is mounted.
724724
*
725725
* @param opts A {@link RedirectOptions} object
726726
*/
727727
redirectToSignIn(opts?: SignInRedirectOptions): Promise<unknown>;
728728

729729
/**
730-
* Redirects to the configured URL where <SignUp/> is mounted.
730+
* Redirects to the configured URL where `<SignUp/>` is mounted.
731731
*
732732
* @param opts A {@link RedirectOptions} object
733733
*/
734734
redirectToSignUp(opts?: SignUpRedirectOptions): Promise<unknown>;
735735

736736
/**
737-
* Redirects to the configured URL where <UserProfile/> is mounted.
737+
* Redirects to the configured URL where `<UserProfile/>` is mounted.
738738
*/
739739
redirectToUserProfile: () => Promise<unknown>;
740740

741741
/**
742-
* Redirects to the configured URL where <OrganizationProfile /> is mounted.
742+
* Redirects to the configured URL where `<OrganizationProfile />` is mounted.
743743
*/
744744
redirectToOrganizationProfile: () => Promise<unknown>;
745745

746746
/**
747-
* Redirects to the configured URL where <CreateOrganization /> is mounted.
747+
* Redirects to the configured URL where `<CreateOrganization />` is mounted.
748748
*/
749749
redirectToCreateOrganization: () => Promise<unknown>;
750750

@@ -764,7 +764,7 @@ export interface Clerk {
764764
redirectToAfterSignOut: () => void;
765765

766766
/**
767-
* Redirects to the configured URL where <Waitlist/> is mounted.
767+
* Redirects to the configured URL where `<Waitlist/>` is mounted.
768768
*/
769769
redirectToWaitlist: () => void;
770770

packages/types/src/localization.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ type DeepLocalizationWithoutObjects<T> = {
6060
* the default english resource object from {@link https://github.com/clerk/javascript Clerk's open source repo}
6161
* as a starting point.
6262
*/
63-
export type LocalizationResource = DeepPartial<DeepLocalizationWithoutObjects<__internal_LocalizationResource>>;
63+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- Needs to be an interface for typedoc to link correctly
64+
export interface LocalizationResource
65+
extends DeepPartial<DeepLocalizationWithoutObjects<__internal_LocalizationResource>> {}
6466

6567
export type __internal_LocalizationResource = {
6668
locale: string;

0 commit comments

Comments
 (0)