diff --git a/src/hooks/useEditorState.ts b/src/hooks/useEditorState.ts index 55d1583..0202491 100644 --- a/src/hooks/useEditorState.ts +++ b/src/hooks/useEditorState.ts @@ -6,7 +6,7 @@ import { EditorContext } from "../contexts/EditorContext.js"; /** * Provides access to the current EditorState value. */ -export function useEditorState(): EditorState | null { +export function useEditorState(): EditorState { const { state: editorState } = useContext(EditorContext); return editorState;