Skip to content

Commit

Permalink
fix: use updated RichTextNodeType enum-like type
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Nov 29, 2021
1 parent df8b19a commit f5aff0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
* @see Templating rich text and title fields from Prismic {@link https://prismic.io/docs/technologies/templating-rich-text-and-title-fields-javascript}
*/
export type RichTextFunctionSerializer<ReturnType> = (
type: RichTextNodeType,
type: typeof RichTextNodeType[keyof typeof RichTextNodeType],
node: RTAnyNode,
text: string | undefined,
children: ReturnType[],
Expand Down Expand Up @@ -134,7 +134,7 @@ export interface Tree {

export interface TreeNode {
key: string;
type: RichTextNodeType;
type: typeof RichTextNodeType[keyof typeof RichTextNodeType];
text?: string;
node: RTAnyNode;
children: TreeNode[];
Expand Down

0 comments on commit f5aff0c

Please sign in to comment.