chore: Removing some any

This commit is contained in:
Tom Moor
2024-01-05 23:25:05 -05:00
parent 89d905ebb7
commit 140526af06
5 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import { Node } from "prosemirror-model";
import { EditorView } from "prosemirror-view";
import { toast } from "sonner";
import type { Dictionary } from "~/hooks/useDictionary";
function findPlaceholderLink(doc: Node, href: string) {
let result: { pos: number; node: Node } | undefined;
@@ -37,7 +38,7 @@ const createAndInsertLink = async function (
title: string,
href: string,
options: {
dictionary: any;
dictionary: Dictionary;
nested?: boolean;
onCreateLink: (title: string, nested?: boolean) => Promise<string>;
}