14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
import type { EditorView } from "@tiptap/pm/view";
|
|
|
|
export type UploadFn = (
|
|
file: File,
|
|
view: EditorView,
|
|
pos: number,
|
|
pageId: string,
|
|
) => void;
|
|
|
|
export interface MediaUploadOptions {
|
|
validateFn?: (file: File) => void;
|
|
onUpload: (file: File, pageId: string) => Promise<any>;
|
|
}
|