Skip to content

Commit

Permalink
Type assertion to renderText
Browse files Browse the repository at this point in the history
  • Loading branch information
vivinkrishna-ni committed Feb 13, 2024
1 parent e96c0a7 commit fcf27a4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ function createCustomMentionExtension(
return [
config.viewElement,
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
this.options.renderText({
(
this.options.renderText as (props: {
options: MentionOptions,
node: FragmentNode
}) => string
)({
options: this.options,
node
})
Expand Down

0 comments on commit fcf27a4

Please sign in to comment.