Skip to content

Commit ecd1435

Browse files
committed
Additional fixes and clean up
1 parent 3bde171 commit ecd1435

File tree

7 files changed

+9
-16
lines changed

7 files changed

+9
-16
lines changed

.typedoc/custom-plugin.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const LINK_REPLACEMENTS = [
4646
['use-checkout-options', '#use-checkout-options'],
4747
['use-reverification-options', '#use-reverification-options'],
4848
['needs-reverification-parameters', '#needs-reverification-parameters'],
49+
['create-organization-params', '#create-organization-params'],
4950
['session-resource', '/docs/reference/javascript/session'],
5051
['signed-in-session-resource', '/docs/reference/javascript/session'],
5152
['sign-in-resource', '/docs/reference/javascript/sign-in'],

packages/shared/src/react/hooks/useCheckout.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@ export type UseCheckoutReturn = FetchStatusAndError &
105105
isConfirming: boolean;
106106
};
107107

108-
/**
109-
* @interface
110-
*/
111-
export type __experimental_UseCheckoutReturn = {
112-
/**
113-
*/
108+
type __experimental_UseCheckoutReturn = {
114109
checkout: UseCheckoutReturn;
115110
};
116111

packages/shared/src/react/hooks/usePaymentAttempts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useClerkInstanceContext } from '../contexts';
44
import { createBillingPaginatedHook } from './createBillingPaginatedHook';
55

66
/**
7-
*
7+
* @internal
88
*/
99
export const usePaymentAttempts = createBillingPaginatedHook<BillingPaymentResource, GetPaymentAttemptsParams>({
1010
hookName: 'usePaymentAttempts',

packages/shared/src/react/hooks/usePaymentMethods.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useOrganizationContext, useUserContext } from '../contexts';
44
import { createBillingPaginatedHook } from './createBillingPaginatedHook';
55

66
/**
7-
*
7+
* @internal
88
*/
99
export const usePaymentMethods = createBillingPaginatedHook<BillingPaymentSourceResource, GetPaymentSourcesParams>({
1010
hookName: 'usePaymentMethods',

packages/shared/src/react/hooks/usePlans.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useClerkInstanceContext } from '../contexts';
44
import { createBillingPaginatedHook } from './createBillingPaginatedHook';
55

66
/**
7-
*
7+
* @internal
88
*/
99
export const usePlans = createBillingPaginatedHook<BillingPlanResource, GetPlansParams>({
1010
hookName: 'usePlans',

packages/shared/src/react/hooks/useReverification.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,15 @@ type UseReverificationResult<Fetcher extends (...args: any[]) => Promise<any> |
7676
/**
7777
* @interface
7878
*/
79-
export type UseReverificationParams = <
80-
Fetcher extends (...args: any[]) => Promise<any> | undefined,
81-
Options extends UseReverificationOptions = UseReverificationOptions,
82-
>(
79+
export type UseReverificationParams = <Fetcher extends (...args: any[]) => Promise<any> | undefined>(
8380
/**
8481
* A function that returns a promise.
8582
*/
86-
fetcher: Fetcher,
83+
fetcher: (...args: any[]) => Promise<any>,
8784
/**
8885
* The optional options object.
8986
*/
90-
options?: Options,
87+
options?: UseReverificationOptions,
9188
) => UseReverificationResult<Fetcher>;
9289

9390
type CreateReverificationHandlerParams = UseReverificationOptions & {

packages/shared/src/react/hooks/useStatements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useClerkInstanceContext } from '../contexts';
44
import { createBillingPaginatedHook } from './createBillingPaginatedHook';
55

66
/**
7-
*
7+
* @internal
88
*/
99
export const useStatements = createBillingPaginatedHook<BillingStatementResource, GetStatementsParams>({
1010
hookName: 'useStatements',

0 commit comments

Comments
 (0)