Skip to content

Commit 501c43e

Browse files
committed
chore: add interface tag to hook types
1 parent b56ccac commit 501c43e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import type { PaginatedHookConfig, PaginatedResources } from '../types';
66
import { createCacheKeys } from './createCacheKeys';
77
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';
88

9+
/**
10+
* @interface
11+
*/
912
export type UseAPIKeysParams = PaginatedHookConfig<
1013
GetAPIKeysParams & {
1114
/**
@@ -17,6 +20,9 @@ export type UseAPIKeysParams = PaginatedHookConfig<
1720
}
1821
>;
1922

23+
/**
24+
* @interface
25+
*/
2026
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
2127
APIKeyResource,
2228
T extends { infinite: true } ? true : false

0 commit comments

Comments
 (0)