|
|
@@ -7,7 +7,7 @@ import { IUser } from '../interfaces/user';
|
|
|
|
|
|
import { useStaticSWR } from './use-static-swr';
|
|
|
|
|
|
-import { TargetAndAncestors, NotFoundTargetPathOrId, IsNotFoundPermalink } from '../interfaces/page-listing-results';
|
|
|
+import { TargetAndAncestors, IsNotFoundPermalink } from '../interfaces/page-listing-results';
|
|
|
|
|
|
type Nullable<T> = T | null;
|
|
|
|
|
|
@@ -127,8 +127,8 @@ export const useTargetAndAncestors = (initialData?: TargetAndAncestors): SWRResp
|
|
|
return useStaticSWR<TargetAndAncestors, Error>('targetAndAncestors', initialData);
|
|
|
};
|
|
|
|
|
|
-export const useNotFoundTargetPathOrId = (initialData?: Nullable<NotFoundTargetPathOrId>): SWRResponse<Nullable<NotFoundTargetPathOrId>, Error> => {
|
|
|
- return useStaticSWR<Nullable<NotFoundTargetPathOrId>, Error>('notFoundTargetPathOrId', initialData);
|
|
|
+export const useNotFoundTargetPathOrId = (initialData?: string): SWRResponse<string, Error> => {
|
|
|
+ return useStaticSWR<string, Error>('notFoundTargetPathOrId', initialData);
|
|
|
};
|
|
|
|
|
|
export const useIsNotFoundPermalink = (initialData?: Nullable<IsNotFoundPermalink>): SWRResponse<Nullable<IsNotFoundPermalink>, Error> => {
|