Fix type errors

This commit is contained in:
2025-06-14 20:45:32 -07:00
parent ad8fb07c69
commit 8bbb78fc58

View File

@@ -1,16 +1,15 @@
import { DocumentList } from "@/components/DocumentList"; import { DocumentList } from "@/components/DocumentList";
import { pb } from "@/lib/pocketbase"; import { pb } from "@/lib/pocketbase";
import { displayName } from "@/lib/relationships"; import { displayName } from "@/lib/relationships";
import type { Document, DocumentId, RelationshipType } from "@/lib/types"; import type { AnyDocument, Document, RelationshipType } from "@/lib/types";
import { useQueryClient, useSuspenseQuery } from "@tanstack/react-query";
import { useState } from "react"; import { useState } from "react";
import { Loader } from "./Loader"; import { Loader } from "./Loader";
import { DocumentRow } from "./documents/DocumentRow"; import { DocumentRow } from "./documents/DocumentRow";
import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm"; import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm";
interface RelationshipListProps { interface RelationshipListProps {
root: Document; root: AnyDocument;
items: DocumentId[]; items: AnyDocument[];
relationshipType: RelationshipType; relationshipType: RelationshipType;
} }