Skip to content

Commit

Permalink
chore: type resolverInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelschroederdev committed Sep 23, 2022
1 parent 4a39693 commit a0f957e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Richtext,
StoryblokComponentType,
SbRichTextOptions,
RichtextInstance,
} from "./types";

import RichTextResolver from "storyblok-js-client/source/richTextResolver";
Expand Down Expand Up @@ -111,7 +112,7 @@ const setComponentResolver = (resolver, resolveFn) => {
export const renderRichText = (
data: Richtext,
options?: SbRichTextOptions,
resolverInstance?: any,
resolverInstance?: RichtextInstance,
): string => {
let localResolver = resolverInstance || richTextResolver;
if (!localResolver) {
Expand Down

0 comments on commit a0f957e

Please sign in to comment.