|
|
@@ -2,11 +2,11 @@ import { SWRResponse } from 'swr';
|
|
|
import useSWRImmutable from 'swr/immutable';
|
|
|
|
|
|
import { apiGet } from '~/client/util/apiv1-client';
|
|
|
-import { ITagsListApiv1Result } from '~/interfaces/tag';
|
|
|
+import { IResTagsListApiv1 } from '~/interfaces/tag';
|
|
|
|
|
|
-export const useSWRxTagsList = (limit?: number, offset?: number): SWRResponse<ITagsListApiv1Result, Error> => {
|
|
|
+export const useSWRxTagsList = (limit?: number, offset?: number): SWRResponse<IResTagsListApiv1, Error> => {
|
|
|
return useSWRImmutable(
|
|
|
['/tags.list', limit, offset],
|
|
|
- (endpoint, limit, offset) => apiGet(endpoint, { limit, offset }).then((result: ITagsListApiv1Result) => result),
|
|
|
+ (endpoint, limit, offset) => apiGet(endpoint, { limit, offset }).then((result: IResTagsListApiv1) => result),
|
|
|
);
|
|
|
};
|