Fix type errors
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user