Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Nov 13, 2024
1 parent 0dfeb0b commit 45121fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slate-utils/src/guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
blockDef,
Blockquote,
blockquoteDef,
BlockquoteSource,
blockquoteSourceDef,
Code,
codeDef,
Expand Down Expand Up @@ -44,7 +45,7 @@ export const isParagraph = (element: NonTextNode): element is Paragraph =>

export const isBlockquoteSource = (
element: NonTextNode,
): element is Paragraph => element.type === blockquoteSourceDef.type;
): element is BlockquoteSource => element.type === blockquoteSourceDef.type;

export const isHeading = (element: NonTextNode): element is Heading =>
element.type === headingDef.type;
Expand Down

0 comments on commit 45121fd

Please sign in to comment.