You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .typedoc/custom-plugin.mjs
+115Lines changed: 115 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -509,6 +509,119 @@ function collectPropertiesFromType(type, reflectionsByName) {
509
509
return[];
510
510
}
511
511
512
+
/**
513
+
* Structural fingerprint for a `Type`. Recurses into composite shapes so two types that only differ in their type arguments (`Foo<string>` vs `Foo<number>`) or in their nested property types (`{ x: string }` vs `{ x: number }`) get distinct fingerprints. Two shapes that produce the same fingerprint are treated as structurally identical and so eligible for cross-pollinating JSDoc comments.
514
+
*
515
+
* Recursion guard: a single shared `Set` of visited reflection ids threads through every nested call to avoid infinite loops on cyclic types (e.g. a type literal that ultimately references itself).
516
+
*
517
+
* @param {import('typedoc').SomeType | undefined} type
* When TypeScript resolves a type through `Omit<...>` / `Pick<...>` (e.g. `ClerkProviderProps = Omit<IsomorphicClerkOptions, …> & { … }`), inline anonymous object literal property types get re-synthesized — and TypeDoc loses the JSDoc on most of their members. Only the first/leading property's comment survives, the rest come through with `comment === undefined`. The same shape elsewhere in the project (e.g. directly under `IsomorphicClerkOptions['telemetry']`) carries all comments correctly.
569
+
*
570
+
* Match `@kind:typeLiteral` reflections by structural fingerprint (set of `(name, type, optional)` tuples on their property children); within each group, pick the reflection with the most commented children as the source-of-truth and copy missing comments onto its siblings.
* @returns A [`BillingCreditBalanceResource`](https://clerk.com/docs/reference/types/billing-credit-balance-resource) object.
90
91
*
91
92
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
* @returns A [`ClerkPaginatedResponse`](https://clerk.com/docs/reference/types/clerk-paginated-response) of [`BillingCreditLedgerResource`](https://clerk.com/docs/reference/types/billing-credit-ledger-resource) objects.
97
99
*
98
100
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
* The `BillingCreditBalanceResource` type represents the credit balance for a payer.
916
919
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
917
920
*/
918
921
exportinterfaceBillingCreditBalanceResource{
919
-
/**
920
-
* The balance of the credit.
921
-
*/
922
+
/** The balance of the credit. */
922
923
balance: BillingMoneyAmount|null;
923
924
}
924
925
926
+
/**
927
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
928
+
*/
925
929
exporttypeGetCreditBalanceParams={
926
-
/**
927
-
* The ID of the Organization to get the credit balance for.
928
-
*/
930
+
/** The ID of the Organization to get the credit balance for. */
929
931
orgId?: string;
930
932
};
931
933
@@ -940,13 +942,19 @@ export type GetCreditHistoryParams = {
940
942
};
941
943
942
944
/**
945
+
* The `BillingCreditLedgerResource` type represents a credit ledger entry for the current payer or given Organization.
943
946
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
944
947
*/
945
948
exportinterfaceBillingCreditLedgerResource{
949
+
/** The ID of the credit ledger entry. */
946
950
id: string;
951
+
/** The amount of the credit ledger entry. */
947
952
amount: BillingMoneyAmount;
953
+
/** The type of the source of the credit ledger entry. */
948
954
sourceType: string;
955
+
/** The ID of the source of the credit ledger entry. */
949
956
sourceId: string;
957
+
/** The date when the credit ledger entry was created. */
* Completes the verification process started by [`prepareAffiliationVerification()`](https://clerk.com/docs/nextjs/reference/types/organization-domain-resource#prepare-affiliation-verification), by validating the provided verification code.
182
-
* @returns The updated [`OrganizationDomainResource`](https://clerk.com/docs/nextjs/reference/types/organization-domain-resource) object.
181
+
* Completes the verification process started by [`prepareAffiliationVerification()`](https://clerk.com/docs/reference/types/organization-domain-resource#prepare-affiliation-verification), by validating the provided verification code.
182
+
* @returns The updated [`OrganizationDomainResource`](https://clerk.com/docs/reference/types/organization-domain-resource) object.
0 commit comments