Skip to content

Commit

Permalink
Remove null type from useEditorState
Browse files Browse the repository at this point in the history
  • Loading branch information
smoores-dev committed Sep 17, 2024
1 parent b4b5c74 commit 0c93e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useEditorState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c93e2e

Please sign in to comment.