Skip to content

Commit 9e4f120

Browse files
committed
Minor refinements code rabbit
1 parent a8c4ada commit 9e4f120

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

packages/shared/src/errors/clerkApiResponseError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface ClerkAPIResponseOptions extends Omit<ClerkErrorParams, 'message' | 'co
1313
}
1414

1515
/**
16-
* Interface representing a Clerk API Response Error.
16+
* Class representing a Clerk API Response Error.
1717
*/
1818
export class ClerkAPIResponseError extends ClerkError implements ClerkAPIResponseErrorInterface {
1919
static kind = 'ClerkAPIResponseError';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ type BillingHookConfig<TResource extends ClerkResource, TParams extends PagesOrI
2727
/**
2828
* @interface
2929
*/
30-
export type HookParams = PaginatedHookConfig<PagesOrInfiniteOptions> & {
30+
export interface HookParams extends PaginatedHookConfig<PagesOrInfiniteOptions> {
3131
/**
3232
* Specifies whether to fetch for the current user or organization.
3333
*
3434
* @default 'user'
3535
*/
3636
for?: ForPayerType;
37-
};
37+
}
3838

3939
/**
4040
* A hook factory that creates paginated data fetching hooks for commerce-related resources.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const hookName = `useSession`;
1515
* @function
1616
*
1717
* @param [options] - An object containing options for the `useSession()` hook.
18+
*
1819
* @example
1920
* ### Access the `Session` object
2021
*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export type UseSubscriptionReturn = {
5757
};
5858

5959
/**
60+
* @internal
6061
*
6162
* Fetches subscription data for the current user or organization.
6263
*

0 commit comments

Comments
 (0)