Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix error Cannot find name 'Writeable'

ammarahm-ed5bcda2cd3aeb
diff --git a/packages/editor/src/extensions/image/image.ts b/packages/editor/src/extensions/image/image.ts
index 777a95d56..9cfc290fc 100644
--- a/packages/editor/src/extensions/image/image.ts
+++ b/packages/editor/src/extensions/image/image.ts
@@ -31,6 +31,8 @@ import { createSelectionBasedNodeView } from "../react";
import { TextDirections } from "../text-direction";
import { ImageComponent } from "./component";
+type Writeable<T> = { -readonly [P in keyof T]: T[P] };
+
export interface ImageOptions {
inline: boolean;
allowBase64: boolean;