Skip to content

Commit

Permalink
Replace any with type used in draft-js-export-html file
Browse files Browse the repository at this point in the history
  • Loading branch information
VP-DS committed Feb 20, 2024
1 parent 453d449 commit ecd75ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/admin-rte/src/core/translation/stateToHtml.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EditorState } from "draft-js";
import { stateToHTML } from "draft-js-export-html";
import { RenderConfig, stateToHTML } from "draft-js-export-html";

import { IRteOptions } from "../Rte";

Expand All @@ -8,7 +8,7 @@ export function stateToHtml({ editorState, options }: { editorState: EditorState

const customInlineStyleKeys = options?.customInlineStyles ? Object.keys(options.customInlineStyles) : [];

const inlineStyles: any = {
const inlineStyles: { [styleName: string]: RenderConfig } = {
SUB: { element: "sub" },
SUP: { element: "sup" },
};
Expand Down

0 comments on commit ecd75ec

Please sign in to comment.