|
@@ -1,13 +1,11 @@
|
|
|
import { SWRResponse } from 'swr';
|
|
import { SWRResponse } from 'swr';
|
|
|
import useSWRImmutable from 'swr/immutable';
|
|
import useSWRImmutable from 'swr/immutable';
|
|
|
|
|
|
|
|
-import { ITag } from '~/interfaces/tag';
|
|
|
|
|
|
|
+import { ITagHasCount } from '~/interfaces/tag';
|
|
|
|
|
|
|
|
import { apiGet } from '../client/util/apiv1-client';
|
|
import { apiGet } from '../client/util/apiv1-client';
|
|
|
|
|
|
|
|
|
|
|
|
|
-export type ITagHasCount = ITag & { count: number }
|
|
|
|
|
-
|
|
|
|
|
export type ITagsApiv1Result = {
|
|
export type ITagsApiv1Result = {
|
|
|
ok: boolean,
|
|
ok: boolean,
|
|
|
data: ITagHasCount[],
|
|
data: ITagHasCount[],
|