Skip to content

Commit

Permalink
quiet type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed May 6, 2024
1 parent 1bb1e73 commit f7defd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/automerge-repo-react-hooks/src/useHandle.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import {
AnyDocumentId,
DocHandle,
interpretAsDocumentId,
} from "@automerge/automerge-repo"
import { useEffect, useState } from "react"
import { useRepo } from "./useRepo.js"

/** A hook which returns a {@link DocHandle} identified by a URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe("useDocument", () => {
url,
onDoc,
}: {
url: AutomergeUrl
url: AutomergeUrl | undefined
onDoc: (doc: ExampleDoc) => void
}) => {
const [doc] = useDocument(url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("useHandle", () => {
url,
onHandle,
}: {
url: AutomergeUrl
url: AutomergeUrl | undefined
onHandle: (handle: DocHandle<unknown> | undefined) => void
}) => {
const handle = useHandle(url)
Expand Down

0 comments on commit f7defd9

Please sign in to comment.