Skip to content

Commit

Permalink
ContentfulRichText: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Benaiah committed May 4, 2023
1 parent 90baabe commit bb8019d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/ContentfulRichText/nodes/ListItem.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import type { Node as NodeType, UnorderedList } from "@contentful/rich-text-types";
import type { Node as NodeType, ListItem } from "@contentful/rich-text-types";
import Node from "./Node.svelte";
import { isListItem } from "../predicates";
export let node: NodeType;
let li: UnorderedList;
let li: ListItem;
if (!isListItem(node)) {
throw new Error("node is not a paragraph");
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/ContentfulRichText/predicates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
type TableRow,
type TableHeaderCell,
type TableCell,
type Quote,
} from "@contentful/rich-text-types";

import type { HeadingLevel, HeadingTypeByLevel } from "./headings";
Expand Down

0 comments on commit bb8019d

Please sign in to comment.